The name of the word must follow CODE: followed by a sequence of numbers representing the machine code op-codes. The numbers will be interpreted to according the current value of BASE .
CODE: writes the dictionary entry in a format suitable for machine code words (the Code Field Address (CFA) points to the machine code, instead of DOCOL) and then compiles the op-codes into consecutive addresses in memory with no translation or conversions applied.
The machine code should be terminated with ;CODE . Upon termination, ;CODE appends a B *R12 instruction to the compiled code, which (at run time) calls NEXT.
|