66. JMP – Jump
66.1. Description
Jump to an address within the entire 4M (words) Program memory. See also RJMP.
This instruction is not available in all devices. Refer to the device specific instruction set summary.
Operation:
(i) PC ← k
Syntax: Operands: Program Counter: Stack:
(i) JMP k 0 ≤ k < 4M PC ← k Unchanged
32-bit Opcode:
1001 010k kkkk 110k
kkkk kkkk kkkk kkkk
66.2. Status Register (SREG) and Boolean Formula
I T H S V N Z C
– – – – – – – –
Example:
mov r1,r0 ; Copy r0 to r1
jmp farplc ; Unconditional jump
...
farplc: nop ; Jump destination (do nothing)
Words 2 (4 bytes)
Cycles 3
Atmel AVR Instruction Set Manual [OTHER]
Atmel-0856L-AVR-Instruction-Set-Manual_Other-11/2016
103