mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-27 18:58:09 +11:00
2d9a07d215
This was becoming heavy to manage.
11 lines
235 B
Plaintext
11 lines
235 B
Plaintext
: [entry] ( w -- )
|
|
C@+ ( w+1 len ) TUCK MOVE, ( len )
|
|
( write prev value )
|
|
H@ CURRENT @ - ,
|
|
C, ( write size )
|
|
H@ CURRENT !
|
|
;
|
|
: (entry) WORD [entry] ;
|
|
: CREATE (entry) 2 ( cellWord ) C, ;
|
|
: VARIABLE CREATE 2 ALLOT ;
|