|
Syntax: |
Operation: |
Operands: |
Program Counter: |
Opcode |
Comment |
Stack: |
|
POP Rd |
Rd = STACK |
0 <= d <= 31 |
PC = PC + 1 |
1001000ddddd1111 |
SP = SP + 1 |
This instruction loads register Rd with a byte from the STACK. The Stack Pointer is pre-incremented by 1 before the POP.
This instruction is not available on all devices. Refer to Appendix A.
|
I |
– |
||
|
T |
– |
||
|
H |
– |
||
|
S |
– |
||
|
V |
– |
||
|
N |
– |
||
|
Z |
– |
||
|
C |
– |
call routine ; Call subroutine
...
routine:
push r14 ; Save r14 on the Stack
push r13 ; Save r13 on the Stack
...
pop r13 ; Restore r13
pop r14 ; Restore r14
ret ; Return from subroutine
1 (2 bytes)
|
Name |
Cycles |
|
AVRe |
2 |
|
AVRxm |
2(1) |
|
AVRxt |
2 |
|
AVRrc |
3 |
Note:
1.
Cycle times for data memory access assume internal RAM access and are not valid for accessing external RAM.