
Application Note
AN1218 Rev. 2
14
PSHX
Push Index Register X onto Stack
(X); SP
←
(SP-$01)
Description: The contents of the 8-bit low order index
register X are pushed onto the stack at the
address contained in the stack pointer. The
stack pointer is then decremented to point at
the next available location in the stack. The
contents of the X register remain
unchanged.
Operation:
PULA
Pull Accumulator from Stack
SP
←
(SP+$01);
(A)
Description: The stack pointer is incremented to address
the last operand on the stack. The
accumulator is then loaded with the
contents of the address pointed to by SP.
Operation:
PULH
Pull Index Register H from Stack
SP
←
(SP+$01);
(H)
Description: The stack pointer is incremented to address
the last operand on the stack. The 8-bit
index register H is then loaded with the
contents of the address pointed to by SP.
Operation:
PULX
Pull Index Register X from Stack
SP
←
(SP+$01);
(X)
Description: The stack pointer is incremented to address
the last operand on the stack. The 8-bit
index register X is then loaded with the
contents of the address pointed to by SP.
Operation:
TSX
Transfer Stack Pointer to Index Register
H:X
←
(SP) + $0001
Description: Loads the index register H:X with one plus
the contents of the 16-bit stack pointer SP.
The contents of the stack pointer remain
unchanged. After a TSX instruction, the
Operation:
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.