11 lines
242 B
Plaintext
11 lines
242 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) 11 ( 11 == cellWord ) C, ;
|
|
: VARIABLE CREATE 2 ALLOT ;
|