CPU16
REFERENCE MANUAL
INSTRUCTION GLOSSARY
MOTOROLA
6-275
CMPA
Compare A to Memory
(A)
(M)
IND8, X
IND8, Y
IND8, Z
IMM8
IND16, X
IND16, Y
IND16, Z
EXT
E, X
E, Y
E, Z
IND8, X
IND8, Y
IND8, Z
IMM8
IND16, X
IND16, Y
IND16, Z
EXT
E, X
E, Y
E, Z
IND8, X
IND8, Y
IND8, Z
IND16, X
IND16, Y
IND16, Z
EXT
INH
INH
INH
INH
IND16, X
IND16, Y
IND16, Z
EXT
IND8, X
IND8, Y
IND8, Z
IMM16
IND16, X
IND16, Y
IND16, Z
EXT
E, X
E, Y
E, Z
IMM16
IND16, X
IND16, Y
IND16, Z
EXT
IND8, X
IND8, Y
IND8, Z
IMM16
IND16, X
IND16, Y
IND16, Z
EXT
48
58
68
78
1748
1758
1768
1778
2748
2758
2768
C8
D8
E8
F8
17C8
17D8
17E8
17F8
27C8
27D8
27E8
00
10
20
1700
1710
1720
1730
3700
3710
27F0
2770
2700
2710
2720
2730
88
98
A8
37B8
37C8
37D8
37E8
37F8
2788
2798
27A8
3738
3748
3758
3768
3778
4F
5F
6F
377F
174F
175F
176F
177F
ff
ff
ff
ii
gggg
gggg
gggg
hh ll
—
—
—
ff
ff
ff
ii
gggg
gggg
gggg
hh ll
—
—
—
ff
ff
ff
gggg
gggg
gggg
hh ll
—
—
—
—
gggg
gggg
gggg
hh ll
ff
ff
ff
jj kk
gggg
gggg
gggg
hh ll
—
—
—
jjkk
gggg
gggg
gggg
hhll
ff
ff
ff
jj kk
gggg
gggg
gggg
hh ll
6
6
6
2
6
6
6
6
6
6
6
6
6
6
2
6
6
6
6
6
6
6
8
8
8
8
8
8
8
2
2
2
2
8
8
8
8
6
6
6
4
6
6
6
6
6
6
6
4
6
6
6
6
6
6
6
4
6
6
6
6
—
—
—
—
CMPB
Compare B to Memory
(B)
(M)
—
—
—
—
COM
One’s Complement
$FF
(M)
M, or M
M
—
—
—
—
0
1
COMA
COMB
COMD
COME
COMW
One’s Complement A
One’s Complement B
One’s Complement D $FFFF
(D)
D, or D
D
One’s Complement E
$FFFF
(E)
E, or E
E
One’s Complement
Word
M
:
M
+
1, or (M : M + 1)
$FF
(A)
A, or M
A
$FF
(B)
B, or B
B
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
0
0
0
0
0
1
1
1
1
1
$FFFF
M : M
+
1
M
:
M
+
1
CPD
Compare D to Memory
(D)
(M : M
+
1)
—
—
—
—
CPE
Compare E to Memory
(E)
(M : M + 1)
—
—
—
—
CPS
Compare Stack
Pointer to Memory
(SP)
(M
:
M
+
1)
—
—
—
—
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
.