1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-27 20:38:06 +11:00
collapseos/blk/368

13 lines
248 B
Plaintext
Raw Normal View History

: +! TUCK @ + SWAP ! ;
2020-05-16 12:59:38 +10:00
: [entry] ( w -- )
H@ SWAP
BEGIN C@+ ( w+1 c ) ?DUP IF C, 0 ELSE 1 THEN UNTIL DROP
2020-05-16 12:59:38 +10:00
H@ SWAP - ( sz )
( write prev value )
2020-05-16 12:59:38 +10:00
H@ CURRENT @ - ,
C, ( write size )
2020-05-16 12:59:38 +10:00
H@ CURRENT !
;
: (entry) WORD [entry] ;