APPENDIX
SECTION 9.4
RST p
INA. (nl
INr.(CJ
SYMBOLIC FLAGS OP-CODE NO
OPERATION o-~~~~--a on
(SP-1) • PCH
(SP-21 • PCL
PCH • 0
PCL • P
A· In)
, - ref
llr llOonly
the fla91wdl
C Z PI\ S N H 76 543 210 CVCLFS
11 101 101
01 , OOO
nrn Ao A7
AccloA9 • A15
C 10 Ao A7
810 Ag A15
(HU· 4CI
8 · 8-1
1 X 11101101 16 CtoAo A7
HL • HL • 1
lHL) • ICI
B • B-1
X X 1 X 11 101 101
10 110 010
Hl · HL • 1
Repeat uni.!
B
~
o
CHU· (Cl
B · 8-1
Hl · HL-1
IHLl • (Cl
8 · B-1
HL· HL-1
Repeat until
B, 0
OUT (nl. A (n) · A
OUT ICI. • IC)•
OUTI (Cl • (HLI
HL · HL • 1
OTIR (Cl• IHLI
8· B-1
OTOR
(C) · (HLI
B • 8-1
Hl • HL-1
(C) • IHLI
B • B-1
HL • HL-1
Repeatunh!
B • 0
@
@
@
'
X
' '
X
X
'
X X
'
X
X
'
Nolet •. r" mean, any ol the reg1S!er1 A. B. C. D. E. H. L
1111 any of th ,ogi,te, pml BC. DE. HL. SP
",s any of 1he ,eg,S!e, pa111 BC. DE. IV. SP
X
"
101 101
10 101010
X 11 101 101
10 111 010
11 010 011
"
101 101
"
00,
X 11101101
10 100 011
"
101 101
10 110 011
X
"
101101
10 101 011
X
"
101 101
10 111011
(I) PIV /tag is O ,I !he re11,11t of BC- 1 • 0, otherwae PIV • 1
@ Z flag" 1 1f A= (Hll, 01he1w1se Z • 0
@ II the ,uul1 of 9-1 • O. the Z flag ii su. otherwise it ii ,net.
e 1ep,uenh the 0101111011 ,n the re!au•e addremng mode
e 1S111gned1wo·1 complemen\ number
,n the ,ange ·: -126. 129 ·
CtoAo A7
Bro AR· A15
n,o Ao· A
7
Acc10A9 · A15
C 10 Ao - A7
B lo As A15
C to Ao A7
6 to Ae • A15
C10Ao' A7
B toAa - A15
C10Ao·A7
B lo Ae A15
o-2 111 the op-codf p,ov,d .. an ellec!,ve addre1s of pcte a1 PC" incremented by 2 prior to th• add11tun of e
Theno1at1on1b1nd,ealub1I b(O 107) oltoeat,on,.
Flag Notation· •=flag no! alftcled. 0 • llag reset, 1 • llag ,el, X •flag" un~nown
I
= flag "allec1ed acc<ird1ng to the ruull of the ol"rat,on
VER.V09F PAGE 9-13