APPENDIX
Appendix 6. Machine instructions
Addressing Modes
Operation
Symbol
Function
IMP
IMM
A
n
DIR DIR, X DIR, Y (DIR) (DIR, X) (DIR), Y L(DIR) L(DIR), Y
length (Bit)
op
n
#
1
op
n
#
op
#
op
n
# op
n
#
op
n
#
op
n
# op
n
#
op
n
#
op
n
#
op
n
#
RTI
S←S + 1
–
F1 12
PSL←M(S)
S←S + 1
PSH←M(S)
S←S + 1
PCL←M(S)
S←S + 1
PCH←M(S)
S←S + 1
PG←M(S)
RTL
S←S + 1
–
94 10 1
PCL←M(S)
S←S + 1
PCH←M(S)
S←S + 1
PG←M(S)
RTLD n
S←S + 1
16
(Notes 11 and DPRnL←M(S)
12)
S←S + 1
DPRnH←M(S)
S←S + 1
PCL←M(S)
S←S + 1
PCH←M(S)
S←S + 1
PG←M(S). (n = 0 to 3. Multiple DPRs
can be specified.)
RTS
S←S + 1
–
84
7
1
PCL←M(S)
S←S + 1
PCH←M(S)
S←S + 1
DPRnL←M(S)
S←S + 1
RTSD n
(Notes 11 and
12)
16
DPRnH←M(S)
S←S + 1
PCL←M(S)
S←S + 1
PCH←M(S), (n = 0 to 3. Multiple DPRs
can be specified.)
16/8
31
A7
3
3
3
3
4
3
3
3
3
6
21
AA
5
7
3
3
SBC
(Notes 1 and
2)
Acc←Acc – M – C
21
AB
6
8
3
3
21
A0
7
9
3
3
21
A1
8
3
3
21
A8
8
3
3
21
A2
9
3
3
21 10
A9
3
3
A1 11
A2
B1
A7
A1
AA
A1
AB
A1
A0
A1 10
A1
A1 10
A8
A1 12
A9
SBCB
(Note 1)
Acc
L
←Acc
L
– IMM8 – C
8
31
1B
B1
1B
SBCD
SEC
SEI
E←E – M32 – C
32
–
31
1D
21
BA
7
3
21
BB
8
3
21
B0
9
3
21 10
B1
3
21 11
B2
3
21 12
B9
3
21 10
B8
3
C←1
04
05
1
4
1
1
I←1
–
7906 Group User’s Manual Rev.2.0
20-86