Intel 8080 Laptop User Manual


 
ADC r
(Add
Register
with
carry)
(A)
~
(A) + (r) + (CY)
The
content
of
register r
and
the
content
of
the
carry
bit
are
added
to
the
content
of
the
accumulator.
The
result
is
placed in
the
accumulator.
Cycles:
States:
Addressing:
Flags:
Arithmetic
Group:
This
group
of
instructions
performs
arithmetic
oper-
ations
on
data
in registers
and
memory.
Unless
indicated
otherwise,
all
instructions
in
this
group
affect
the
Zero,
Sign,
Parity,
Carry,
and
Auxiliary
Carry
flags
accord
ing
to
the
standard
rules.
All
~ubtraction
operations
are
performed
via
two's
complement
arithmetic
and
set
the
carry
flag
to
one
to
in-
dicate
a
borrow
and
clear
it
to
indicate
no
borrow.
1 I 0 I 0
o
1
4
register
Z,S,P,CY,AC
ADD
r
(Add
Register)
(A)
~
(A)
+ (r)
The
content
of
register r
is
added
to
the
content
of
the
accumulator.
The
result
is
placed
in
the
accumulator.
1 I
o I
o
o
I 0
ADC M
(Add
memory
with
carry)
(A)
~
(A)
+
((H)
(L))
+ (CY)
The
content
of
the
memory
location
whose
address
is
contained
in
the
Hand
L registers
and
the
content
of
the
CY flag
are
added
to
the
accumulator.
The
result
is
placed
in
the
accumulator.
Cycles:
States:
Addressing:
Flags:
1
4
register
Z,S,P,CY,AC
Cycles:
States:
Addressing:
Flags:
2
7
reg.
indirect
Z,S,P
,CY,AC
o
ACI
data
(Add
immediate
with
carry)
(A)
~
(A) +
(byte
2) + (CY)
The
content
of
the
second
byte
of
the
instruction
and
the
content
of
the
CY
flag
are
added
to
the
contents
of
the
accumulator.
The
result
is
placed
in
the
accumulator.
Cycles:
States:
Addressing:
Flags:
ADD
M
(Add
memory)
(A)...-
(A) + ((H)
(L))
The
content
of
the
memory
location
whose
address
is
contained
in
the
Hand
L registers
is
added
to
the
content
of
the
accumulator.
The
result
is
placed in
the
accumulator.
1
I
0
I
0
0
0
0
Cycles:
2
States:
7
Addressing: reg.
indirect
Flags:
Z,S,P,CY,AC
1 I
I 0
o
data
2
7
immediate
Z,S,P,CY,AC
o
ADI
data
(Add
immediate)
(A)
~
(A) +
(byte
2)
The
content
of
the
second
byte
of
the
instruction
is
added
to
the
content
of
the
accumulator.
The
result
is
placed in
the
accumulator.
1 I 1 I 0
SUB r
(Subtract
Register)
(A)
~
(A)
- (r)
The
content
of
register r
is
subtracted
from
the
con-
tent
of
the
accumulator.
The
result
is
placed
in
the
accumulator.
data
Cycles:
States:
Addressing:
Flags:
2
7
immediate
Z,S,P,CY,AC
4-6
1
I
0
I
0
0
i
S
I
S
I
S
Cycles:
1
States:
4
Addressing:
register
Flags:
Z,S,P,CY,AC