CPU16
REFERENCE MANUAL
INSTRUCTION SET
MOTOROLA
5-19
5.7.2 Address Extension Instructions
Address extension instructions transfer extension field contents to or from accumula-
tor B. Other types of operations can be performed on the extension field value while it
is in the accumulator.
Transfer Instructions
Function
Transfer SP to IX
Transfer SP to IY
Transfer SP to IZ
Transfer IX to SP
Transfer IX to IY
Transfer IX to IZ
Transfer IY to SP
Transfer IY to IX
Transfer IY to IZ
Transfer IZ to SP
Transfer IZ to IX
Transfer IZ to IY
Exchange Instructions
Function
Exchange D with IX
Exchange D with IY
Exchange D with IZ
Exchange E with IX
Exchange E with IY
Exchange E with IZ
Mnemonic
TSX
TSY
TSZ
TXS
TXY
TXZ
TYS
TYX
TYZ
TZS
TZX
TZY
Operation
(SK : SP) + 2
XK : IX
(SK : SP) + 2
YK : IY
(SK : SP) + 2
ZK : IZ
(XK : IX) – 2
SK : SP
(XK : IX)
YK : IY
(XK : IX)
ZK : IZ
(YK : IY) – 2
SK : SP
(YK : IY)
XK : IX
(YK : IY)
ZK : IZ
(ZK : IZ) – 2
SK : SP
(ZK : IZ)
XK : IX
(ZK : IZ)
ZK : IY
Mnemonic
XGDX
XGDY
XGDZ
XGEX
XGEY
XGEZ
Operation
(D)
(IX)
(D)
(IY)
(D)
(IZ)
(E)
(IX)
(E)
(IY)
(E)
(IZ)
Table 5-27 Address Extension Summary
Mnemonic
TBEK
TBSK
TBXK
TBYK
TBZK
TEKB
Function
Transfer B to EK
Transfer B to SK
Transfer B to XK
Transfer B to YK
Transfer B to ZK
Transfer EK to B
Operation
(B)
EK
(B)
SK
(B)
XK
(B)
YK
(B)
ZK
$0
B[7:4]
(EK)
B[3:0]
(SK)
B[3:0]
$0
B[7:4]
$0
B[7:4]
(XK)
B[3:0]
$0
B[7:4]
(YK)
B[3:0]
$0
B[7:4]
(ZK)
B[3:0]
TSKB
Transfer SK to B
TXKB
Transfer XK to B
TYKB
Transfer YK to B
TZKB
Transfer ZK to B
Table 5-26 Indexing Summary (Continued)
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.