B
000
C
001
DOlO
E
all
H
100
L
101
A
III
The
s op
e
rand,
along
\
'
l
iththe
Carry
Flag
("C"
in
th
e
F
re
g
ist
e
r
)
is
subtracted
from
the
contents
of
the
Accumulat
o
r,
a
nd
the
result
is
stored
in
the
Acc
u
m
ul
a
t
o
r.
INSTRU
C
TIO
N
M
CY
C
LES
T
STATES
4
H
H
Z
E.
T
.
SBC
A, r
1
4
1
.
00
SBC
A,n
2
7(4,3)
1
.
75
SBC
A, (HL
)
2
7(4,3)
1
.
75
SBC
A, (I
X
+d)
5
19(4
,
4,3,5,3)
4.75
SBC
A,(I
Y
+d)
5
19(4
,
4,3,5,3)
4.75
C
o
ndition
Bits
Affec
t
ed:
Set
if
result
is
negative;
reset
other\iise
Set
if
result
is
zero;
reset
otherwise
S
e
t if th
er
e i
s
a bor
r
o
w
a
nd r
ese
t oth
e
r
w
i
se
.
Set
if
overflow;
reset
o
therwise
Set
Se
t ifth
e
r
e
i
s a
bor
r
o
w
a
nd
re
s
e
t oth
e
r
w
is
e.
If
the
Accumulator
contains
16H,
the
carry
flag
is
s
e
t
,
the
HL
r
e
gister
pair
contains
3433H,
and
address
343
3H
contains
aSH,
after
the
execution
of
Содержание ATES Z80
Страница 1: ......
Страница 5: ......
Страница 6: ...Juanlurn c cc r 11 SoJt 391262 Jr ml tOl...
Страница 32: ......
Страница 38: ...If Address 2130ll contains 65ll and address 2131H contains 78ll after the instruction...
Страница 56: ......
Страница 79: ......
Страница 80: ......
Страница 82: ...If the contents of the Accumulator are 44H and the contents of register Care IlH after the execution of...
Страница 86: ...10050 is 220 after the execution of ADD A IX SH the contents of the Accumulator will be 33H...
Страница 88: ......
Страница 104: ...If the contents of register Dare 280 after the execution of...
Страница 112: ......
Страница 117: ...Example If the contents of the Accumulator are...
Страница 119: ...SCF S z H P V N C Not affected Not affected Rese t Not affected Re se t Set...
Страница 127: ......
Страница 128: ......
Страница 130: ...If register pair HL contains the integer 42428 and register pair DE contains IlllH after the execution of...
Страница 132: ...If the register pair BC contains 2222H register pair HL contains 5437H and the Carry Flas is set after the execution of...
Страница 136: ...If the contents of Index Register IX are 333H and the contents of register pair Be are 5555H after the execution of...
Страница 138: ...If the contents of Index Register IY are 333H and the contents of register pair Be are SSSH after the execution of...
Страница 140: ...INC x 11 0 a I DO I0 a a a a I 23 If the Index Register IX contains the integer 3300H after the execution of...
Страница 141: ...INC IY I 1 0 1 I FD I 0 a a a a I 23 If the contents of the Index Register are 2977H after the execution of...
Страница 143: ...DEe IX 1 1 0 1 1 1 0 1 I DO I0 0 1 0 1 0 1 I 2B If the contents of Index Register IX are 2006ll after the execution of...
Страница 144: ...DEe IY I 1 0 I FD I 0 a a a I 28 If the contents of the Index Register IY are 7649H after the execution of...
Страница 145: ......
Страница 146: ......
Страница 148: ...Example If the contents of the Accumulator are...
Страница 150: ...If the contents of the Accumulator and the Carry Flag are the contents of the Accumulator and the Carry Flag will be...
Страница 152: ...the contents of the Accumulator and the Carry Flag will be...
Страница 154: ...If the contents of the Accumulator and the Carry Flag are the contents of the Accumulator and the Carry Flag will be...
Страница 185: ......
Страница 186: ......
Страница 203: ......
Страница 204: ......
Страница 212: ...The resulting object code and PC after the jump are shown below 480 LABEL JR NC LABEL 30 PC after jump 481 00...
Страница 214: ...The resulting object code and final PC value is shown below 300 JR Z LPBEL 301 302 303 304 305 LABEL...
Страница 216: ...The resulting object code and final PC value is shown below 47C LABEL 47D 47E 47F 480 JR NZ LABEL 481...
Страница 222: ......
Страница 237: ......
Страница 238: ......
Страница 243: ...memory location lOOOH will contain 7BH the HL register pair will contain lOOlH and register B will contain OFH...
Страница 261: ......
Страница 262: ......
Страница 267: ......