z80:Opcodes:PUSH
From Learn @ Cemetech
Revision as of 22:27, 5 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
Copies the operand into (SP), then increments SP by 2.
Syntax
push reg16
Allowed Instructions
push af push bc push de push hl push ix push iy
Effects
Flags are unaffected.
Uses
Used for saving register values onto the stack. Also used when you want to load a 16-bit register into another 16-bit register (the LD instruction won't work for this).
T-States
rr represents a two byte register pair: BC, DE, HL, SP
rr | 11 |
ix | 15 |
iy | 15 |
See Also