mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 19:40:55 +11:00
5bf3baff05
Also, add word "C!+" and fix PSP leak in FILL.
15 lines
276 B
Plaintext
15 lines
276 B
Plaintext
( Drop RSP until I-2 == INTERPRET. )
|
|
: EXIT!
|
|
['] INTERPRET ( I )
|
|
BEGIN ( I )
|
|
DUP ( I I )
|
|
R> DROP I 2- @ ( I I a )
|
|
= UNTIL
|
|
DROP
|
|
;
|
|
|
|
( a -- a+1 c )
|
|
: C@+ DUP C@ SWAP 1+ SWAP ;
|
|
( c a -- a+1 )
|
|
: C!+ SWAP OVER C! 1+ ;
|