jmp
Jump
Jumps to the specified address unconditionally.
Used in
- A jump tableM68K assembly
XNZVC –––––
- Leaves every flag unchanged
Forms
Operands
<ea>- An operand using one of the addressing modes listed for this form. The list determines whether it can be a register, memory or an immediate value. With
opt p=68020, an allowedd(An,Xn)ord(PC,Xn)mode also permits the corresponding 68020 indexed and memory indirect forms. See 68020 addressing. More
move.l #10, d0
jmp skip
move.l #$DEAD, d1 ; never reached
skip:
move.l #$FF, d1
* --- Jump through address register ---
lea skip2, a0
jmp (a0)
move.l #$DEAD, d2 ; never reached
skip2:
move.l #$FF, d2