OpenBoot 3.x Command Reference Manual

Assembly Language Programming

Table I-22 Assembly Language Programming

Command 

Stack Diagram 

Description 

code name

( -- code-sys ) 

(E: ... -- ??? )  

Begin the creation of an assembly language routine called name. Commands that follow are interpreted as assembler mnemonics. Note that if the assembler is not installed, code is still present, except that machine code must be entered numerically (for example, in hex) with ",".

c;

( code-sys -- ) 

End the creation of an assembly language routine. Automatically assemble the Forth interpreter "next" function so that the created assembly-code word, when executed, returns control to the calling routine as usual. 

label name

( -- code-sys ) 

(E: -- a-addr ) 

Begin the creation of an assembly language routine called name. Words created with label leave the address of the code on the stack when executed. The commands that follow are interpreted as assembler mnemonics. As with code, label is present even if the assembler is not installed.

end-code

( code-sys -- ) 

End the assembly language patch started with label.