|
M38203M4 Datasheet, PDF (318/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPENDIX
3.5 Machine instructions
Addressing mode
Symbol
Function
Details
IMP
IMM
A
BIT, A
ZP
BIT, ZP
OP n # OP n # OP n # OP n # OP n # OP n #
JMP
JSR
If addressing mode is ABS
PCL â ADL
PCH â ADH
If addressing mode is IND
PCL â M (ADH, ADL)
PCH â M (ADH, ADL + 1)
If addressing mode is ZP, IND
PCL â M(00, ADL)
PCH â M(00, ADL + 1)
M(S) â PCH
SâSâ1
M(S) â PCL
SâSâ1
After executing the above,
if addressing mode is ABS,
PCL â ADL
PCH â ADH
if addressing mode is SP,
PCL â ADL
PCH â FF
If addressing mode is ZP, IND,
PCL â M(00, ADL)
PCH â M(00, ADL + 1)
Jumps to the specified address.
After storing contents of program counter in
stack, and jumps to the specified address.
LDA
(Note 2)
When T = 0
AâM
When T = 1
M(X) â M
LDM
M â nn
Load accumulator with contents of memory.
Load memory indicated by index register X
with contents of memory specified by the ad-
dressing mode.
Load memory with immediate value.
A9 2 2
A5 3 2
3C 4 3
LDX
XâM
Load index register X with contents of
memory.
A2 2 2
LDY
YâM
Load index register Y with contents of
memory.
A0 2 2
LSR
70
0â âC
Shift the contents of accumulator or memory
to the right by one bit.
The low order bit of accumulator or memory is
stored in carry, 7th bit is cleared.
4A 2 1
MUL
(Note 5)
M(S) · A â A ! M(zz + X)
SâSâ1
Multiplies the accumulator with the contents of
memory specified by the zero page X address-
ing mode and stores the high byte of the result
on the stack and the low byte in the accumula-
tor.
NOP
PC â PC + 1
No operation.
EA 2 1
A6 3 2
A4 3 2
46 5 2
ORA
(Note 1)
When T = 0
AâAVM
When T = 1
M(X) â M(X) V M
âLogical ORâsâ the contents of memory and ac-
cumulator. The result is stored in the
accumulator.
âLogical ORâsâ the contents of memory indi-
cated by index register X and contents of
memory specified by the addressing mode.
The result is stored in the memory specified by
index register X.
09 2 2
05 3 2
3-34
3820 GROUP USERâS MANUAL
|
▷ |