Intel 8080 Laptop User Manual


 
CPI
data
(Compare
immediate)
(A)
(byte
2)
The
content
of
the
second
byte
of
the
instruction
is
subtracted
from
the
accumulator.
The
condition
flags
are
set
by
the
result
of
the
subtraction.
The
Z flag
is
set
to
1 if (A) =
(byte
2).
The
CY flag
is
set
to
1 if
(A) <
(byte
2).
CMP M
(Compare
memory)
(A)
((H)
(L))
The
content
of
the
memory
location
whose
address
is
contained
in
the
Hand
L registers
is
subtracted
from
the
accumulator.
The
accumulator
remains un-
changed.
The
condition
flags
are
set
as a result
of
the
subtraction.
The
Z flag
is
set
to
1 if (A) = ((H)
(L)).
The
CY flag
is
set
to
1 if (A) < ((H)
(L)).
Cycles: 1
States:
4
Flags: CY
0
I
0
I
0
I
0
I
,
I
1
I
,
Cycles:
1
States:
4
Flags:
CY
o I 1 I , I ,
o I 0 I 0 I ,
RAL
(Rotate
left
through
carry)
(A
n
+,)
..-
(An) ; (CY)
..-
(A7)
(AO)"-
(CY)
The
content
of
the
accumu
lator
is
rotated
left
one
position
through
the
CY flag.
The
low
order
bit
is
set
equal
to
the
CY flag
and
the
CY flag
is
set
to
the
value
shifted
out
of
the
high
order
bit.
Only
the
CY
flag
is
affected.
RRC
(Rotate
right)
(An)
~
(A
n
-,);
(A7)
~
(AO)
(CY)
~
(AO)
The
content
of
the
accumu
lator
is
rotated
right
one
position.
The
high
order
bit
and
the
CY flag
are
both
set
to
the
value
shifted
out
of
the
low
order
bit
posi-
tion.
Only
the
CY flag
is
affected.
o I
2
7
reg.
indirect
Z,S,P,CY,AC
Cycles:
States:
Addressing:
Flags:
o
, I
, I
data
Cycles:
States:
Addressing:
Flags:
2
7
immediate
Z,S,P,CY,AC
RAR
(Rotate
right
through
carry)
(An)
~
(A
n
+l);
(CY)..-
(AO)
(A7)
~
(CY)
The
content
of
the
accumulator
is
rotated
right
one
position
through
the
CY flag.
The
high
order
bit
is
set
to
the
CY flag
and
the
CY flag
is
set
to
the
value
shifted
out
of
the
low
order
bit.
Only
the
CY flag
is
affected.
Cycles: 1
States:
4
Flags: CY
RLC
(Rotate
left)
(A
n
+l)
~
(An) ;
(AO)
~
(A7)
(CY)
~
(A7)
The
content
of
the
accumulator
is
rotated
left
one
position.
The
low
order
bit
and
the
CY flag are
both
set
to
the
value
shifted
out
of
the
high
order
bit
posi-
tion.
Only
the
CY flag
is
affected.
CMA
(Complement
accumulator)
(A)~(A)
The
contents
of
the
accumulator
are
complemented-
(zero bits
become
1,
one
bits
become
0). No flags
are
affected.
o I 0 I 1 I 0
I 1 I , I ,
Cycles: 1
States:
4
Flags: CY
Cycles: ,
States:
4
Flags:
none
4-10