mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-16 19:48:05 +11:00
75ef1f440c
This allows us to remove AMOVE* words.
15 lines
353 B
Plaintext
15 lines
353 B
Plaintext
: +! TUCK @ + SWAP ! ;
|
|
: *! ( addr alias -- ) 1+ ! ;
|
|
: **! ( addr switch -- ) 1+ @ ! ;
|
|
: / /MOD NIP ;
|
|
: MOD /MOD DROP ;
|
|
: ALLOT HERE +! ;
|
|
: FILL ( a n b -- )
|
|
SWAP 2 PICK + ( a b a+n ) ROT ( b a+n a ) DO ( b )
|
|
DUP I C!
|
|
LOOP DROP ;
|
|
: ALLOT0 ( n -- ) H@ OVER 0 FILL ALLOT ;
|
|
SYSVARS 0x3e + :** A@
|
|
SYSVARS 0x40 + :** A!
|
|
SYSVARS 0x42 + :** A,
|