Command |
Stack Diagram |
Description |
---|---|---|
, |
( n -- ) |
Place a number in the dictionary. |
c, |
( byte -- ) |
Place a byte in the dictionary. |
w, |
( word -- ) |
Place a 16-bit number in the dictionary. |
l, |
( quad -- ) |
Place a 32-bit number in the dictionary. |
[ |
( -- ) |
Enter interpretation state. |
] |
( -- ) |
End interpreting, enter compilation state. |
allot |
( n -- ) |
Allocate n bytes in the dictionary. |
>body |
( xt -- a-addr ) |
Find the data field address from the execution token. |
body> |
( a-addr -- xt ) |
Find the execution token from the data field address. |
compile |
( -- ) |
Compile the next word at run time. (Recommend using postpone instead.) |
[compile] name |
( -- ) |
Compile the next (immediate) word. (Recommend using postpone instead.) |
forget name |
( -- ) |
Remove word from dictionary and all subsequent words. |
here |
( -- addr ) |
Address of top of dictionary. |
immediate |
( -- ) |
Mark the last definition as immediate. |
to name |
( n -- ) |
Install a new action in a defer word or value. |
literal |
( n -- ) |
Compile a number. |
origin |
( -- addr ) |
Return the address of the start of the Forth system. |
patch new-word old-word word-to-patch |
( -- ) |
Replace old-word with new-word in word-to-patch. |
(patch) |
( new-n old-n xt -- ) |
Replace old-n with new-n in word indicated by xt. |
postpone name |
( -- ) |
Delay the execution of the word name. |
recursive |
( -- ) |
Make the name of the colon definition being compiled visible in the dictionary, and thus allow the name of the word to be used recursively in its own definition. |
state |
( -- addr ) |
Variable that is non-zero in compile state. |