Push
Stack push operations
Table of Contents
Instructions
Syntax | Opcode |
Available on: |
# of |
# of |
Addressing Mode |
(hex) |
6502 |
65C02 |
65816 |
bytes |
cycles |
PEA addr | F4 |
|
|
x |
3 |
5 |
Stack Absolute |
PEI (dp) | D4 |
|
|
x |
2 |
61 |
Stack Direct Page Indirect |
PER label | 62 |
|
|
x |
3 |
6 |
Stack PC Relative Long |
PHA | 48 |
x |
x |
x |
1 |
32 |
Implied |
PHB | 8B |
|
|
x |
1 |
3 |
Implied |
PHD | 0B |
|
|
x |
1 |
4 |
Implied |
PHK | 4B |
|
|
x |
1 |
3 |
Implied |
PHP | 08 |
x |
x |
x |
1 |
3 |
Implied |
PHX | DA |
x |
x |
x |
1 |
33 |
Implied |
PHY | 5A |
x |
x |
x |
1 |
33 |
Implied |
Notes:
- Add 1 cycle if low byte of Direct Page register is other than zero (DL<>0)
- 65816: Add 1 cycle if m=0 (16-bit memory/accumulator)
- 65816: Add 1 cycle if x=0 (16-bit registers)