mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 12:48:05 +11:00
wip
This commit is contained in:
parent
00401077f0
commit
04335fc40a
2
blk/288
2
blk/288
@ -4,7 +4,7 @@ PC ORG @ 0x22 + ! ( litWord, 0xf7, tight on the 0x100 limit )
|
|||||||
called, puts the string's address on PS )
|
called, puts the string's address on PS )
|
||||||
IY PUSHqq, HL POPqq, ( <-- IP )
|
IY PUSHqq, HL POPqq, ( <-- IP )
|
||||||
E (HL) LDrr, D 0 LDrn,
|
E (HL) LDrr, D 0 LDrn,
|
||||||
DE INCss, DE INCss,
|
DE INCss,
|
||||||
DE ADDIYss,
|
DE ADDIYss,
|
||||||
HL PUSHqq,
|
HL PUSHqq,
|
||||||
JPNEXT,
|
JPNEXT,
|
||||||
|
2
blk/382
2
blk/382
@ -4,7 +4,7 @@
|
|||||||
AGAIN ;
|
AGAIN ;
|
||||||
: LIT"
|
: LIT"
|
||||||
34 , ( litWord ) H@ 0 C, ,"
|
34 , ( litWord ) H@ 0 C, ,"
|
||||||
DUP H@ -^ 1- ( a len ) SWAP C! 0 C,
|
DUP H@ -^ 1- ( a len ) SWAP C!
|
||||||
; IMMEDIATE
|
; IMMEDIATE
|
||||||
: ." [COMPILE] LIT" COMPILE (print) ; IMMEDIATE
|
: ." [COMPILE] LIT" COMPILE (print) ; IMMEDIATE
|
||||||
: ABORT" [COMPILE] ." COMPILE ABORT ; IMMEDIATE
|
: ABORT" [COMPILE] ." COMPILE ABORT ; IMMEDIATE
|
||||||
|
2
blk/399
2
blk/399
@ -1,4 +1,4 @@
|
|||||||
: LIT< WORD 34 , DUP C@ 1+ MOVE, 0 C, ; IMMEDIATE
|
: LIT< WORD 34 , DUP C@ 1+ MOVE, ; IMMEDIATE
|
||||||
: BEGIN H@ ; IMMEDIATE
|
: BEGIN H@ ; IMMEDIATE
|
||||||
: AGAIN COMPILE (br) H@ - _bchk , ; IMMEDIATE
|
: AGAIN COMPILE (br) H@ - _bchk , ; IMMEDIATE
|
||||||
: UNTIL COMPILE (?br) H@ - _bchk , ; IMMEDIATE
|
: UNTIL COMPILE (?br) H@ - _bchk , ; IMMEDIATE
|
||||||
|
BIN
emul/forth.bin
BIN
emul/forth.bin
Binary file not shown.
Loading…
Reference in New Issue
Block a user