goto/16
Purpose
Unconditionally jump to the indicated instruction.
Note: The branch offset may not be 0. (A spin loop may be legally constructed
either with goto/32 or by including a nop as a target before the branch.)
Details
| Op & Format |
Mnemonic / Syntax |
Arguments |
| 29 20t |
goto/16 +AAAA |
A: signed branch offset (16 bits)
|
Constraints
-
A must point to a valid bytecode instruction inside the current method.
-
A must not be 0.
Behavior
-
The (otherwise invisible) program counter PC is set to the address of the
instruction plus the given offset, that is, PC' = PC(goto) + A.
-
Executions resumes at PC'.
Exceptions
None.