English
Language : 

M38002M4 Datasheet, PDF (166/173 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPENDIX
3.9 Machine instructions
Symbol
Function
STA
M←A
Addressing mode
Details
IMP
IMM
A
BIT, A
ZP
BIT, ZP
OP n # OP n # OP n # OP n # OP n # OP n #
Stores the contents of accumulator in memory.
85 4 2
STP
Stops the oscillator.
42 2 1
STX
M←X
STY
M←Y
TAX
X←A
TAY
Y←A
TST
M = 0?
TSX
X←S
TXA
A←X
TXS
S←X
TYA
A←Y
WIT
Stores the contents of index register X in
memory.
Stores the contents of index register Y in
memory.
Transfers the contents of the accumulator to AA 2 1
index register X.
Transfers the contents of the accumulator to A8 2 1
index register Y.
Tests whether the contents of memory are “0”
or not.
Transfers the contents of the stack pointer to BA 2 1
index register X.
Transfers the contents of index register X to 8A 2 1
the accumulator.
Transfers the contents of index register X to 9A 2 1
the stack pointer.
Transfers the contents of index register Y to 98 2 1
the accumulator.
Stops the internal clock.
C2 2 1
86 4 2
84 4 2
64 3 2
Notes 1 : The number of cycles “n” is increased by 3 when T is 1.
2 : The number of cycles “n” is increased by 2 when T is 1.
3 : The number of cycles “n” is increased by 1 when T is 1.
4 : The number of cycles “n” is increased by 2 when branching has occurred.
5 : N, V, and Z flags are invalid in decimal operation mode.
3-64
3800 GROUP USER’S MANUAL