Pop ix – Zilog Z08470 User Manual

Page 131

Advertising
background image

UM008007-0715

Z80 Instruction Description

Z80 CPU

User Manual

119

POP IX

Operation

IXH ← (SP+1), IXL ← (SP)

Op Code

POP

Operand

IX

Description

The top two bytes of the external memory last-in, first-out (LIFO) stack are popped to
Index Register IX. The Stack Pointer (SP) Register pair holds the 16-bit address of the
current top of the Stack. This instruction first loads to the low-order portion of IX the byte
at the memory location corresponding to the contents of SP; then SP is incremented and
the contents of the corresponding adjacent memory location are loaded to the high-order
portion of IX. The SP is incremented again.

Condition Bits Affected

None.

Example

If the Stack Pointer contains

1000h

, memory location

1000h

contains

55h

, and location

1001h

contains

33h

, the instruction

POP

IX

results in Index Register IX containing

3355h

, and the Stack Pointer containing

1002h

.

M Cycles

T States

4 MHz E.T.

4

14 (4, 4, 3, 3)

3.50

1

1

1

0

1

1

0

1

DD

1

1

0

0

1

0

1

0

E1

Advertising
This manual is related to the following products: