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
YH, i
YL, i
r, i
r, q
A, Mn
B, Mn
Mn, A
Mn, B
MX, i
r, q
MY, i
r, q
MX,
F, i
F, i
SP
SP
r
XH
XL
YH
YL
F
r
XH
XL
CP
LD
LDPX
LDPY
LBPX
SET
RST
SCF
RCF
SZF
RZF
SDF
RDF
EI
DI
INC
DEC
PUSH
POP
Index
operation
instructions
Data
transfer
instructions
Flag
operation
instructions
Stack
operation
instructions
Classification
Operand
I D Z C
↑
↓
↑
↓
↑
↑
↑
↑
↑
↓
↑
↓
↑
↑
↑
↑
↑
↓
↑
↓
7
7
7
7
5
5
5
5
5
5
5
5
5
5
5
7
7
7
7
7
7
7
7
7
7
5
5
5
5
5
5
5
5
5
5
5
Clock
Operation Code
Flag
XH-i3~i0
XL-i3~i0
YH-i3~i0
YL-i3~i0
r i3~i0
r q
A
B
M(n3~n0) A
M(n3~n0) B
M(X) i3~i0, X X+1
r q, X X+1
M(Y) i3~i0, Y Y+1
r q, Y Y+1
M(X) 3~ 0, M(X+1) 7~ 4, X X+2
←
←
F
F
C
C
Z
Z
D
D
I
I
←
←
←
←
←
←
←
←
Mne-
monic
Operation
↓
↓
↓
↓
↑
↓
↑
↓
↓
↓
↓
↓
SP SP+1
SP SP-1
SP SP-1, M(SP) r
SP SP-1, M(SP) XH
SP SP-1, M(SP) XL
SP SP-1, M(SP) YH
SP SP-1, M(SP) YL
SP SP-1, M(SP) F
r M(SP), SP SP+1
XH
XL
←
←
M(n3~n0)
M(n3~n0)
←
←
←
←
←
←
←
←
←
←
←
←
←
←
←
F i3~i0
F i3~i0
1
0
1
0
1 (Decimal Adjuster ON)
0 (Decimal Adjuster OFF)
1 (Enables Interrupt)
0 (Disables Interrupt)
←
←
←
←
←
←
←
←
←
←
←
←
←
←
←
←
←
←
M(SP), SP SP+1
M(SP), SP SP+1
←
←
l
l
l
l
l
l
l
l
l
l
l
l
l