1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-25 05:28:06 +11:00

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:
Virgil Dupras 2020-06-20 20:06:42 -04:00
parent ae719508d9
commit 99c05fff3c
2 changed files with 3 additions and 2 deletions

View File

@ -2,4 +2,4 @@
DI 3 SUBxi, AX [DI] MOVx[], ( prev )
AX AX ORxx,
JNZ, AGAIN, ( loop )
AX INCx, ( NZ ) RETn,
SI DECx, ( start of string, and NZ ) RETn,

View File

@ -9,7 +9,8 @@ RS_ADDR 0x80 - CONSTANT RAMSTART
CODE (emit)
AX POPx, AH 0x0e MOVri, ( print char ) 0x10 INT,
;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 )
(entry) _
( Update LATEST )