POPD
Pop Top of Stack to Data Memory
7-138
Cycles for a Repeat (RPT) Execution of a POPD Instruction
Program
Operand
ROM
DARAM
SARAM
External
DARAM
n
n
n
n+p
SARAM
n
n
n, n+2
†
n+p
External
2n+nd
2n+nd
2n+nd
2n+2+nd+p
† If the operand and the code are in the same SARAM block
Example 1
POPD
DAT10
;(DP = 8)
Before Instruction
After Instruction
Data Memory
Data Memory
40Ah
55h
40Ah
92h
Stack
92h
Stack
72h
72h
8h
8h
44h
44h
81h
81h
75h
75h
32h
32h
0AAh
0AAh
0AAh
Example 2
POPD
*+,AR1
Before Instruction
After Instruction
ARP
0
ARP
1
AR0
300h
AR0
301h
Data Memory
Data Memory
300h
55h
300h
92h
Stack
92h
Stack
72h
72h
8h
8h
44h
44h
81h
81h
75h
75h
32h
32h
0AAh
0AAh
0AAh