push

Push onto stack

Stores BC, DE, HL, AF, IX or IY on the stack, decrementing SP once for each byte.

SZHP/VNC ––––––
  • Changes no flag

Forms

  • SP is decremented and the high byte of rr is stored into the memory location pointed to by SP. SP is decremented again and the low byte of rr is stored into the memory location pointed to by SP.

  • SP is decremented and IXH is stored into the memory location pointed to by SP. SP is decremented again and IXL is stored into the memory location pointed to by SP.

Operands

rr
A register pair: bc, de, hl or af.
ix
The ix index register. You can also use iy, with the same instruction size and timing. More
        .org 0x8000
        ld bc, 0x0234
        push bc
        halt