mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 00:40:56 +11:00
bd38d80f9c
and renamed it "Core words". Also, reworded the presentation.
14 lines
308 B
Plaintext
14 lines
308 B
Plaintext
: WORD(
|
|
DUP 1- C@ ( name len field )
|
|
127 AND ( 0x7f. remove IMMEDIATE flag )
|
|
3 + ( fixed header len )
|
|
-
|
|
;
|
|
: FORGET
|
|
' DUP ( w w )
|
|
( HERE must be at the end of prev's word, that is, at the
|
|
beginning of w. )
|
|
WORD( HERE ! ( w )
|
|
PREV CURRENT !
|
|
;
|