pcat: it works!
Forth intepreter now works! There's still DOES> and overflow checks to implement, but otherwise, we have it!
This commit is contained in:
parent
ae719508d9
commit
99c05fff3c
2
blk/818
2
blk/818
@ -2,4 +2,4 @@
|
|||||||
DI 3 SUBxi, AX [DI] MOVx[], ( prev )
|
DI 3 SUBxi, AX [DI] MOVx[], ( prev )
|
||||||
AX AX ORxx,
|
AX AX ORxx,
|
||||||
JNZ, AGAIN, ( loop )
|
JNZ, AGAIN, ( loop )
|
||||||
AX INCx, ( NZ ) RETn,
|
SI DECx, ( start of string, and NZ ) RETn,
|
||||||
|
@ -9,7 +9,8 @@ RS_ADDR 0x80 - CONSTANT RAMSTART
|
|||||||
CODE (emit)
|
CODE (emit)
|
||||||
AX POPx, AH 0x0e MOVri, ( print char ) 0x10 INT,
|
AX POPx, AH 0x0e MOVri, ( print char ) 0x10 INT,
|
||||||
;CODE
|
;CODE
|
||||||
CODE (key) AH AH XORrr, 0x16 INT, AX PUSHx, ;CODE
|
CODE (key)
|
||||||
|
AH AH XORrr, 0x16 INT, AH AH XORrr, AX PUSHx, ;CODE
|
||||||
380 LOAD ( xcomp core high )
|
380 LOAD ( xcomp core high )
|
||||||
(entry) _
|
(entry) _
|
||||||
( Update LATEST )
|
( Update LATEST )
|
||||||
|
Loading…
Reference in New Issue
Block a user