APPENDIX
Appendix 6. Machine instructions
Addressing Modes
Operation
Symbol
Function
IMP
IMM
op
A
n
DIR DIR, X DIR, Y (DIR) (DIR, X) (DIR), Y L(DIR) L(DIR), Y
length (Bit)
op
n
#
n
#
op
#
op
n
# op
n # op n # op n # op n # op n # op n # op n #
BMI
if N = 1
–
–
–
–
then PC←PC + 2 + REL (–128 to
+127)
BNE
BPL
if Z = 0
then PC←PC + 2 + REL (–128 to
+127)
if N = 0
then PC←PC + 2 + REL (–128 to
+127)
BRA/BRAL
(Note 5)
PC←PC + cn t + REL
(BRA:–128 to +127,
BRAL: –32768 to +32767)
(cnt: Number of bytes of instruction)
PG←PG + 1
(When carry occurs)
PG←PG – 1
(When borrow occurs)
PC←PC + 2
M(S)←PG
S←S – 1
BRK
(Note 6)
–
00 15
74
2
M(S)←PCH
S←S – 1
M(S)←PCL
S←S – 1
M(S)←PSH
S←S – 1
M(S)←PSL
S←S – 1
I←1
PCL←ADL
PCH←ADM
PG←0016 or FF16
BSC
(Note 7)
if A(bit n) or M(bit n) = 0
(n = 0 to 15), then PC←PC + cnt +
REL (–128 to +127)
16/8
01
A0
+
7
3
71 11 4
A0
+
(cnt: Number of bytes of instruction)
n
n
BSR
(S)←PC + 2
–
PC←PC + 2 + REL (–1024 to
+1023)
BSS
(Note 7)
if A(bit n) or M(bit n) = 1 (n = 0 to
15), then PC←PC + cnt + REL
(–128 to +127)
16/8
01
80
+
7
3
71 11 4
80
+
(cnt: Number of bytes of instruction)
n
n
BVC
BVS
if V = 0
–
then PC←PC + 2 + REL (–128 to
+127)
if V = 1
–
then PC←PC + 2 + REL (–128 to
+127)
7906 Group User’s Manual Rev.2.0
20-62