Motorola HC12 Refrence Manual page 218

Table of Contents

Advertisement

PSHX
(SP) – $0002 ⇒ SP
Operation:
(X
H
Description:
Stacks the content of index register X. The stack pointer is decremented
by two. The content of X is then stacked at the address to which the SP
points. After PSHX executes, the SP points to the stacked value of the
high-order half of X.
Push instructions are commonly used to save the contents of one or
more CPU registers at the start of a subroutine. Complementary pull in-
structions can be used to restore the saved CPU registers just before re-
turning from the subroutine.
Condition Codes and Boolean Formulas:
S
None affected.
Addressing Modes, Machine Code, and Execution Times:
Source Form
PSHX
MOTOROLA
6-158
Push Index Register X onto Stack
) ⇒ M
: X
: M
(SP + 1)
L
(SP)
X
H
I
N
Z
Address Mode
INH
INSTRUCTION GLOSSARY
V
C
Object Code
34
PSHX
Cycles
Access Detail
2
OS
CPU12
REFERENCE MANUAL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents