English
Language : 

M38002M4 Datasheet, PDF (158/173 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPENDIX
3.9 Machine instructions
3.9 Machine instructions
Symbol
Function
ADC
(Note 1)
(Note 5)
When T = 0
A←A+M+C
When T = 1
M(X) ← M(X) + M + C
AND
(Note 1)
WA ←henATV=M0
When T
M(X) ←
=1
M(X)
V
M
ASL
70
C←
←0
BBC
(Note 4)
BBS
(Note 4)
BCC
(Note 4)
BCS
(Note 4)
BEQ
(Note 4)
BIT
Ab or Mb = 0?
Ab or Mb = 1?
C = 0?
C = 1?
Z = 1?
V
AM
BMI
(Note 4)
BNE
(Note 4)
BPL
(Note 4)
BRA
N = 1?
Z = 0?
N = 0?
PC ← PC ± offset
BRK
B←1
M(S) ← PCH
S←S–1
M(S) ← PCL
S←S–1
M(S) ← PS
S←S–1
PCL ← ADL
PCH ← ADH
Addressing mode
Details
IMP
IMM
A
BIT, A
ZP
BIT, ZP
OP n # OP n # OP n # OP n # OP n # OP n #
Adds the carry, accumulator and memory con-
tents. The results are entered into the
accumulator.
Adds the contents of the memory in the ad-
dress indicated by index register X, the
contents of the memory specified by the ad-
dressing mode and the carry. The results are
entered into the memory at the address indi-
cated by index register X.
69 2 2
65 3 2
“AND’s” the accumulator and memory con-
tents.
The results are entered into the accumulator.
“AND’s” the contents of the memory of the ad-
dress indicated by index register X and the
contents of the memory specified by the ad-
dressing mode. The results are entered into
the memory at the address indicated by index
register X.
29 2 2
25 3 2
Shifts the contents of accumulator or contents
of memory one bit to the left. The low order bit
of the accumulator or memory is cleared and
the high order bit is shifted into the carry flag.
0A 2 1
06 5 2
Branches when the contents of the bit speci-
fied in the accumulator or memory is “0”.
Branches when the contents of the bit speci-
fied in the accumulator or memory is “1”.
1+3 4 2
2i
0+3 4 2
2i
1+7 5 3
2i
0+7 5 3
2i
Branches when the contents of carry flag is
“0”.
Branches when the contents of carry flag is
“1”.
Branches when the contents of zero flag is “1”.
“AND’s” the contents of accumulator and
memory. The results are not entered any-
where.
Branches when the contents of negative flag is
“1”.
Branches when the contents of zero flag is “0”.
24 3 2
Branches when the contents of negative flag is
“0”.
Jumps to address specified by adding offset to
the program counter.
Executes a software interrupt.
00 7 1
3-56
3800 GROUP USER’S MANUAL