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0
r0
r0
r0
r0
r0
r0
r0
r0
i0
i0
i0
i0
p
s
C, s
NC, s
Z, s
NZ, s
s
s
e
X
Y
X, e
Y, e
XP, r
XH, r
XL, r
YP, r
YH, r
YL, r
r, XP
r, XH
r, XL
r, YP
r, YH
r, YL
XH, i
XL, i
YH, i
YL, i
PSET
JP
JPBA
CALL
CALZ
RET
RETS
RETD
NOP5
NOP7
HALT
SLP
INC
LD
ADC
IDZC
↑
↑
↑
↑
↑
↑
↑
↑
5
5
5
5
5
5
5
7
7
7
12
12
5
7
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
7
7
7
7
NBP
←
p4, NPP
←
p3~p0
PCB
←
NBP, PCP
←
NPP, PCS
←
s7~s0
PCB
←
NBP, PCP
←
NPP, PCS
←
s7~s0 if C=1
PCB
←
NBP, PCP
←
NPP, PCS
←
s7~s0 if C=0
PCB
←
NBP, PCP
←
NPP, PCS
←
s7~s0 if Z=1
PCB
←
NBP, PCP
←
NPP, PCS
←
s7~s0 if Z=0
PCB
←
NBP, PCP
←
NPP, PCSH
←
B, PCSL
←
A
M(SP-1)
←
PCP, M(SP-2)
←
PCSH, M(SP-3)
←
PCSL+1
SP
←
SP-3, PCP
←
NPP, PCS
←
s7~s0
M(SP-1)
←
PCP, M(SP-2)
←
PCSH, M(SP-3)
←
PCSL+1
SP
←
SP-3, PCP
←
0, PCS
←
s7~s0
PCSL
←
M(SP), PCSH
←
M(SP+1), PCP
←
M(SP+2)
SP
←
SP+3
PCSL
←
M(SP), PCSH
←
M(SP+1), PCP
←
M(SP+2)
SP
←
SP+3, PC
←
PC+1
PCSL
←
M(SP), PCSH
←
M(SP+1), PCP
←
M(SP+2)
SP
←
SP+3, M(X)
←
e3~e0, M(X+1)
←
e7~e4, X
←
X+2
No operation (5 clock cycles)
No operation (7 clock cycles)
Halt (stop clock)
SLEEP (stop oscillation)
X
←
X+1
Y
←
Y+1
XH
←
e7~e4, XL
←
e3~e0
YH
←
e7~e4, YL
←
e3~e0
XP
←
r
XH
←
r
XL
←
r
YP
←
r
YH
←
r
YL
←
r
r
←
XP
r
←
XH
r
←
XL
r
←
YP
r
←
Y
H
r
←
YL
XH
←
XH+i3~i0+C
XL
←
XL+i3~i0+C
YH
←
YH+i3~i0+C
YL
←
YL+i3~i0+C
↓
↓
↓
↓
↓
↓
↓
↓
Branch
instructions
System
control
instructions
Index
operation
instructions
Classification Operand Clock
Operation Code Flag
Mne-
monic
Operation