APPENDIX
Appendix 6. Machine instructions
Addressing Modes
Operation
Symbol
Function
IMP
op
IMM
op
A
n
DIR DIR, X DIR, Y (DIR) (DIR, X) (DIR), Y L(DIR) L(DIR), Y
length (Bit)
n
#
n
#
op
#
2
op n # op
n # op n # op n # op n # op n # op n # op n #
ASRD #n
(Note 4)
Arithmetic shift to the right by n bits
(n = 0 to 31)
32
16/8
8
D1
80
8
+
+ imm
imm
E
→ b31 … b0 ← C
BBC
if M(bit n) = 0
(Note 3)
then PC←PC + cnt + REL (–128
to +127)
(cnt: Number of bytes of instruction)
BBCB
if M8(bit n) = 0
then PC←PC + cnt + REL (–128
to +127)
(cnt: Number of bytes of instruction)
BBS
if M(bit n) = 1
16/8
(Note 3)
then PC←PC + cnt + REL (–128
to +127)
(cnt: Number of bytes of instruction)
BBSB
BCC
BCS
BEQ
BGE
BGT
BGTU
BLE
if M8(bit n) = 1
then PC←PC+cnt+REL (–128 to
+127)
8
(cnt: Number of bytes of instruction)
if C = 0
–
then PC←PC + 2 + REL (–128 to
+127)
if C = 1
–
then PC←PC + 2 + REL (–128 to
+127)
if Z = 1
–
then PC←PC + 2 + REL (–128 to
+127)
if N V = 0
then PC←PC + 2 + REL (–128 to
+127)
–
if Z = 0 and N V = 0
then PC←PC + 2 + REL (–128 to
+127)
–
if C = 1 and Z = 0
then PC←PC + 2 + REL (–128 to
+127)
–
–
–
–
if Z = 1 or N V = 1
then PC←PC + 2 + REL (–128 to
+127)
BLEU
BLT
if C = 0 or Z = 1
then PC←PC + 2 + REL(–128 to
+127)
if N V = 1
then PC←PC + 2 + REL (–128 to
+127)
7906 Group User’s Manual Rev.2.0
20-60