Browse Source

pcat: it works!

Forth intepreter now works! There's still DOES> and overflow checks
to implement, but otherwise, we have it!
pull/126/head
Virgil Dupras 4 years ago
parent
commit
99c05fff3c
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      blk/818
  2. +2
    -1
      recipes/pcat/xcomp.fs

+ 1
- 1
blk/818 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,

+ 2
- 1
recipes/pcat/xcomp.fs 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 )


Loading…
Cancel
Save