63. IJMP – Indirect Jump
63.1. Description
Indirect jump to the address pointed to by the Z (16 bits) Pointer Register in the Register File. The Z-
pointer Register is 16 bits wide and allows jump within the lowest 64K words (128KB) section of Program
memory.
This instruction is not available in all devices. Refer to the device specific instruction set summary.
Operation: Comment:
(i) PC ← Z(15:0) Devices with 16-bit PC, 128KB Program memory maximum.
(ii) PC(15:0) ← Z(15:0)
PC(21:16) ← 0
Devices with 22-bit PC, 8MB Program memory maximum.
Syntax: Operands: Program Counter: Stack:
(i), (ii) IJMP None See Operation Not Affected
16-bit Opcode:
1001 0100 0000 1001
63.2. Status Register (SREG) and Boolean Formula
I T H S V N Z C
– – – – – – – –
Example:
mov r30,r0 ; Set offset to jump table
ijmp ; Jump to routine pointed to by r31:r30
Words 1 (2 bytes)
Cycles 2
Atmel AVR Instruction Set Manual [OTHER]
Atmel-0856L-AVR-Instruction-Set-Manual_Other-11/2016
99