APPENDIX
Appendix 6. Machine instructions
Addressing Modes
Operation
Symbol
Function
IMP
IMM
op n #
A
n
DIR DIR, X DIR, Y (DIR) (DIR, X) (DIR), Y L(DIR) L(DIR), Y
length (Bit)
op
n
#
op
A6
#
3
op
n
# op
n # op n # op n # op n # op n # op n # op n #
CBEQ
if Acc = IMM or M = IMM
16/8
6
7
6
7
6
7
6
7
41
9
5
(Notes 1 and then PC←PC + cnt + REL(–128 to
3)
6A
+127)
81
A6
4
3
4
3
4
3
4
(cnt: Number of bytes of instruction)
CBEQB
(Note 1)
if Acc
L
= IMM8 or M8 = IMM8
8
A2
62
8
9
8
4
5
4
then PC←PC + cnt + REL (–128 to
+127)
(cnt: Number of bytes of instruction)
81
A2
CBNE
if Acc ≠ IMM or M ≠ IMM
16/8
B6
41
7A
(Notes 1 and then PC←PC + cnt + REL (–128 to
3)
+127)
81
B6
(cnt: Number of bytes of instruction)
CBNEB
(Note 1)
if Acc
L
≠ IMM8 or M8 ≠ IMM8
8
B2
72
then PC←PC+cnt+REL(–128 to
+127)
(cnt: Number of bytes of instruction)
81
B2
CLC
CLI
C←0
–
14
15
45
1
3
3
1
1
1
I←0
–
CLM
CLP
m←0
–
PS
L
(bit n)←0
98 4 2
–
(n = 0 to 7. Multiple bits can
be specified.)
CLR
(Note 1)
Acc←0
16/8
54
1
2
1
2
1
2
1
2
81
54
CLRB
(Note 1)
Acc
L
←0016
8
44
81
44
CLRM
CLRMB
CLRX
CLRY
M←0
16/8
D2
C2
5
5
2
2
M8←0016
X←0
8
16/8
16/8
E4
F4
1
1
1
1
Y←0
7906 Group User’s Manual Rev.2.0
20-64