3 ms·
Looks like a recursive-descent parser that emits instructions in memory as it parses. Then it executes them immediately (sectorc.s): ;; done compiling, exe
by bluetomcat 3y ago
Looks like a recursive-descent parser that emits instructions in memory as it parses. Then it executes them immediately (sectorc.s):
;; done compiling, execute the binary
execute:
push es ; push the codegen segment
push word [bx] ; push the offset to "_start()"
push 0x4000 ; load new segment for variable data
pop ds
retf ; jump into it via "retf"
- userbinator 3y agoDoesn't even have room for recursive descent or any sort of operator precedence.