pop

Pop from stack

Loads BC, DE, HL, AF, IX or IY from the stack, incrementing SP once for each byte.

SZHP/VNC ––––––
  • Most forms leave every flag unchanged

Forms that affect the flags differently are shown in their row.

Forms

  • Loads the value pointed to by SP into the low byte of rr and increments SP, then loads the value pointed to by SP into the high byte of rr and increments SP again.

  • pop af 1 byte10 cycles S●Z●H●P/V●N●C●

    Loads the value pointed to by SP into F and increments SP, then loads the value pointed to by SP into A and increments SP again.

  • Loads the value pointed to by SP into IXL and increments SP, then loads the value pointed to by SP into IXH and increments SP again.

Operands

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