CPU16
REFERENCE MANUAL
INSTRUCTION GLOSSARY
MOTOROLA
6-285
SWI
Software Interrupt
(PK
:
PC) + $0002
PK
:
PC
Push (PC)
(SK
:
SP)
$0002
SK
:
SP
Push (CCR)
(SK
:
SP)
$0002
SK
:
SP
$0
PK
SWI Vector
PC
If B7 = 1
then $FF
A
else $00
A
(A)
B
(A[7:0])
CCR[15:8]
(B)
A
(B[3:0])
EK
(B[3:0])
SK
(B[3:0])
XK
(B[3:0])
YK
(B[3:0])
ZK
(D)
E
(D[15:8])
X MASK
(D[7:0])
Y MASK
(D)
CCR[15:4]
(E)
D
(E)
AM[31:16]
(D)
AM[15:0]
AM[35:32] = AM31
(EK)
B[3:0]
$0
B[7:4]
(E)
AM[31:16]
$00
AM[15:0]
AM[35:32] = AM31
INH
3720
—
16
—
—
—
—
—
—
—
—
SXT
Sign Extend B into A
INH
27F8
—
2
—
—
—
—
—
—
TAB
TAP
TBA
TBEK
TBSK
TBXK
TBYK
TBZK
TDE
TDMSK
Transfer A to B
Transfer A to CCR
Transfer B to A
Transfer B to EK
Transfer B to SK
Transfer B to XK
Transfer B to YK
Transfer B to ZK
Transfer D to E
Transfer D to
XMSK : YMSK
Transfer D to CCR
INH
INH
INH
INH
INH
INH
INH
INH
INH
INH
3717
37FD
3707
27FA
379F
379C
379D
379E
277B
372F
—
—
—
—
—
—
—
—
—
—
2
4
2
2
2
2
2
2
2
2
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
0
0
—
—
—
—
—
0
—
—
—
—
—
—
—
—
—
—
TDP
1
TED
TEDM
INH
372D
—
4
—
—
Transfer E to D
Transfer E and D to
AM[31:0]
Sign Extend AM
Transfer EK to B
INH
INH
27FB
27B1
—
—
2
4
—
—
—
0
—
—
—
0
0
—
—
—
TEKB
INH
27BB
—
2
—
—
—
—
—
—
—
—
TEM
Transfer E to
AM[31:16]
Sign Extend AM
Clear AM LSB
Transfer Rounded AM
to E
INH
27B2
—
4
—
0
—
0
—
—
—
—
TMER
Rounded (AM)
Temp
If (SM
(EV
MV))
then Saturation Value
E
else Temp[31:16]
E
If (SM
(EV
MV))
then Saturation Value
E
else AM[31:16]
E
AM[35:32]
IX[3:0]
AM35
IX[15:4]
AM[31:16]
E
AM[15:0]
D
(CCR[15:8])
A
(CCR)
D
(SK)
B[3:0]
$0
B[7:4]
(M)
$00
INH
27B4
—
6
—
—
—
—
TMET
Transfer Truncated
AM to E
INH
27B5
—
2
—
—
—
—
—
—
TMXED
Transfer AM to
IX : E : D
INH
27B3
—
6
—
—
—
—
—
—
—
—
TPA
TPD
TSKB
Transfer CCR to A
Transfer CCR to D
Transfer SK to B
INH
INH
INH
37FC
372C
37AF
—
—
—
2
2
2
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
TST
Test Byte
Zero or Minus
IND8, X
IND8, Y
IND8, Z
IND16, X
IND16, Y
IND16, Z
EXT
INH
06
16
26
1706
1716
1726
1736
3706
ff
ff
ff
gggg
gggg
gggg
hh ll
—
6
6
6
6
6
6
6
2
—
—
—
—
0
0
TSTA
Test A for
Zero or Minus
Test B for
Zero or Minus
Test D for
Zero or Minus
Test E for
Zero or Minus
(A)
$00
—
—
—
—
0
0
TSTB
(B)
$00
INH
3716
—
2
—
—
—
—
0
0
TSTD
(D)
$0000
INH
27F6
—
2
—
—
—
—
0
0
TSTE
(E)
$0000
INH
2776
—
2
—
—
—
—
0
0
Table 6-36 Instruction Set Summary (Continued)
Mnemonic
Operation
Description
Address
Instruction
Condition Codes
Mode
Opcode
Operand
Cycles
S
MV
H
EV
N
Z
V
C
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.