mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-29 13:18:04 +11:00
17 lines
484 B
Plaintext
17 lines
484 B
Plaintext
|
( Words here until the end of the low part, unlike words
|
||
|
preceeding them, aren't immediately needed for boot. But its
|
||
|
better to have as many words as possible in the xcomp part. )
|
||
|
: H@ HERE @ ;
|
||
|
: IMMEDIATE
|
||
|
CURRENT @ 1-
|
||
|
DUP C@ 128 OR SWAP C! ;
|
||
|
: IMMED? 1- C@ 0x80 AND ;
|
||
|
: +! SWAP OVER @ + SWAP ! ;
|
||
|
: -^ SWAP - ;
|
||
|
: / /MOD SWAP DROP ;
|
||
|
: MOD /MOD DROP ;
|
||
|
: ALLOT HERE +! ;
|
||
|
: CREATE (entry) 11 ( 11 == cellWord ) C, ;
|
||
|
: VARIABLE CREATE 2 ALLOT ;
|
||
|
: LEAVE R> R> DROP I 1- >R >R ;
|