PSHD
Push Data-Memory Value Onto Stack
7-140
Cycles for a Repeat (RPT) Execution of a PSHD Instruction
Program
Operand ROM DARAM SARAM External
DARAM n n n n+p
SARAM n n n, n+1
†
n+p
External n+nd n+nd n+nd n+1+nd+p
†
If the operand and the code are in the same SARAM block
Example 1 PSHD 127 ;(DP = 3: addresses 0180–01FFh)
Before Instruction After Instruction
Data Memory Data Memory
1FFh 65h 1FFh 65h
Stack 2h Stack 65h
33h 2h
78h 33h
99h 78h
42h 99h
50h 42h
0h 50h
0h 0h
Example 2 PSHD *,AR1
Before Instruction After Instruction
ARP 0 ARP 1
AR0 1FFh AR0 1FFh
Data Memory Data Memory
1FFh 12h 1FFh 12h
Stack 2h Stack 12h
33h 2h
78h 33h
99h 78h
42h 99h
50h 42h
0h 50h
0h 0h