6.87.1 Description
Relative call to an address within PC - 2K + 1 and PC + 2K (words). The return address (the instruction after the RCALL) is stored onto the Stack. See also CALL. For AVR microcontrollers with program memory not exceeding 4K words (8 KB), this instruction can address the entire memory from every address location. The Stack Pointer uses a post-decrement scheme during RCALL.
Operation: |
Comment: | |||
(i) |
PC ← PC + k + 1 |
Devices with 16-bit PC, 128 KB program memory maximum. | ||
(ii) |
PC ← PC + k + 1 |
Devices with 22-bit PC, 8 MB program memory maximum. | ||
Syntax: |
Operands: |
Program Counter: |
Stack: | |
(i) |
RCALL k |
-2K ≤ k < 2K |
PC ← PC + k + 1 |
STACK ← PC + 1 SP ← SP - 2 (2 bytes, 16 bits) |
(ii) |
RCALL k | -2K ≤ k < 2K | PC ← PC + k + 1 |
STACK ← PC + 1 SP ← SP - 3 (3 bytes, 22 bits) |
16-bit Opcode:
1101 | kkkk | kkkk | kkkk |