|
(Continued from previous)
labeled statement takes the form:
label: opcode operand1, operand2, destination
where label is an integer. The labels assigned to statements do not need to be in sequential order, nor do they need to start at any particular value. Labels do need to be unique within a source file. A statement can only have one label, however labels may be placed on blank lines to achieve the same effect.
… goto 0 … goto 1 … goto 2 ... 0: 1: 2: print "Target of three gotos\n"
Subroutines
Subroutines are enclosed in PROCBEGIN and PROCEND instructions and must be contained in a single code section. Subroutines may not contain data sections.
Subroutines are invoked with the call instruction and execution jumps to the first instruction after the PROCBEGIN. When the PROCEND is encountered execution jumps back to the first instruction following the call.
|
|