push

Push onto stack

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

SZHP/VNC ––––––
  • Leaves every flag unchanged

Forms

  • Decrements SP and stores the high byte of rr into the memory location pointed to by SP, then decrements SP again and stores the low byte of rr there.

  • Decrements SP and stores IXH into the memory location pointed to by SP, then decrements SP again and stores IXL there.

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