|
There are two special instructions: The LOOP and the JUMP instructions.
- JUMP address
Execution will be transfered immediately to the instruction address given by address.
- LOOP address number
Exection will be transfered immediately to the instruction address given by address for as long as the number of times this instruction was seen is less than number. Note, that it only makes sense to LOOP to a previous instruction address (this is not diagnosed).
address my be an absolute instruction address, in which case the argument should be an unsigned integer.
If address is a literal plus (+ ) or minus (- ), followed by an unsigned integer, then the address is relative to the current address. Note, that the compiler will check if you jump before address 0, but will not check if you jump beyond the end of the instruction sets loaded. This is due to the single pass of the compiler.
If the address is an identifier, it is taken to be the label of an instruction. The compiler will try to resolve this label. If the label was not previsouly set, then the instruction is illegal, and the compiler aborts.
|