PUSH IX

Operation

(SP-2) <- IXl, (SP-1) <- IXh

Mnemonic

PUSH

Operands

IX

b7b6b5b4b3b2b1b0
1 1 0 1 1 1 0 1$DD
1 1 1 0 0 1 0 1$E5

Description

The contents of Index Register IX are pushed to the external memory last-in, first-out (LIFO) stack. The Stack Pointer (SP) Register pair holds the 16-bit address of the current top of the Stack. This instruction first decrements SP and loads the high-order byte of IX to the memory address specified by SP; then decrements SP again and loads the low-order byte to the memory location corresponding to this new address in SP.

Condition Bits Affected

None

Example

If Index Register IX contains $2233 and the Stack Pointer contains 1007, then upon execution of

	PUSH	IX

memory address $1006 contains $22, memory address $1005 contains $33 and the Stack Pointer contains $1005