8.3. Cosmac 1802 handheld computer

Obsazení registrů

Code definitions: Forth words defined in assembly code should have the contents of their code-field address (CFA) pointing to their parameter-field address (PFA); the definition should terminate with the SEP 8 instruction.

Inner interpretermechanism, or 'next': code words control to next by setting R8 as the program counter (SEP R8). When the inner interpreter has advanced the I pointer and set the W pointer to the PFA of the next word to be executed then R9 is set as the program counter to execute the code associated with that word and R8 will be reset to the start address of NEXT again.

Stack requirements: stack space allocation is dictated by the application processing and nesting requirements. If memory is restricted try some low nominal values, eg. parameter stack space >= 40h bytes ? return stack space >= 40h bytes ?

Header structure: the word header structure is based on the Forth-79 dictionary model: