English
Language : 

MC68HC11G5 Datasheet, PDF (160/195 Pages) Motorola, Inc – High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcontroller
Freescale Semiconductor, Inc.
12.3.2 Stack and Index Register Instructions
The following table summarizes the instructions available for the 16-bit index registers (X and Y)
and the 16-bit stack pointer.
Table 12-7. Stack And Index Register Instructions
Function
Add Accumulator B to X
Add Accumulator B to Y
Compare X to Memory (16 Bit)
Compare Y to Memory (16 Bit)
Decrement Stack Pointer
Decrement Index Register X
Decrement Index Register Y
Increment Stack Pointer
Increment Index Register X
Increment Index Register Y
Load Index Register X
Load Index Register Y
Load Stack Pointer
Pull X from Stack
Pull Y from Stack
Push X onto Stack
Push Y onto Stack
Store Index Register X
Store Index Register Y
Store Stack Pointer
Transfer SP to X
Transfer SP to Y
Transfer X to SP
Transfer Y to SP
Exchange D with X
Exchange D with Y
Mnemonic IMM DIR EXT INDX INDY INH
ABX
X
ABY
X
CPX
X
X
X
X
X
CPY
X
X
X
X
X
DES
X
DEX
X
DEY
X
INS
X
INX
X
INY
X
LDX
X
X
X
X
X
LDY
X
X
X
X
X
LDS
X
X
X
X
X
PULX
X
PULY
X
PSHX
X
PSHY
X
STX
X
X
X
X
X
STY
X
X
X
X
X
STS
X
X
X
X
X
TSX
X
TSY
X
TXS
X
TYS
X
XGDX
X
XGDY
X
The exchange D with X (XGDX) and exchange D with Y (XGDY) instructions provide a simple way
of getting a pointer value from a 16-bit index register to the D accumulator which has more powerful
16-bit arithmetic capabilities than the 16-bit index registers. Since these are bidirectional exchanges,
12-10
CPU, ADDRESSING MODES AND INSTRUCTION SET
For More Information On This Product,
Go to: www.freescale.com