{\huge Assembling}

Assembly code is easily integrated into a Forth system by using the
{\tt CODE} word to create a new Forth primary. A detailed knowledge
of the transputer instruction set will be required. The {\tt NEXT} word
is required to complete a primary word and execute the next Forth word.

The workspace layout and the opcode definitions are provided on disk
screens 16-21. To load them type:
{\tt 16 LOAD} \\
Prefixing is automatically included. The operand to all direct functions
is taken from top of stack so reverse polish notation rules.

The first 8
words in the workspace are in the on-chip RAM and are available to the
programmer.
The 8 words above them have prescribed
usages and should be modified with caution. These include stack pointers
such as {\tt SP} and {\tt RP}. Words above these are reserved for the system.
Data storage is best done on the dictionary or to absolute addresses above
the disk buffers when memory permits.

Words are provided to implement {\tt POP}, {\tt PUSH} and {\tt NEXT}.
Refer to disk screen 21 for examples.

The opcodes currently implemented are common to all transputers. Clearly
the addition of device specific opcodes is trivial by refering to the
Transputer Data book to obtain the opcode values.
