THE INSTRUCTION SET
ORA M
(OR
memory)
(A)
--
(A)
V
((H)
(L»
The
content
of
the memory location whose
address is contained in the
Hand
L
registers is
inclusive-OR'd
with
the
content
of
the
accumulator.
The result is placed in
the
accumulator.
The CY and AC
flags
are
cleared.
o 1
1
Cycles:
States:
Addressing:
Flags:
o
2
7
1
reg. indirect
Z,S,P,CY,AC
ORI data
(OR
Immediate)
(A)
--
(A)
V (byte
2)
o
The
content
of
the
second byte
of
the in-
struction
is inclusive-OR'd
with
the
content
of
the
accumulator.
The result is placed in
the
accumulator.
The
CY
and AC
flags
are
cleared.. .
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
ac-
cumulator. 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)).
o
Cycles:
States:
Addressing:
Flags:
2
7
1
1
reg.
indirect
Z,S,P,CY,AC
CPI
data
(Compare immediate)
(A)
- (byte
2)
o
The content
of
the second byte
of
the
in-
struction
is
subtracted
from
the
ac-
cumulator. 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).
~
____________
1_da_t_a_o
___________
o~11
~----_1--------1d-a-ta---------1----0~
Cycles:
States:
Addressing:
Flags:
2
7
immediate
Z,S,P,CY,AC
CMP r (Compare Register)
(A) -
(r)
The
content
of
register r is subtracted from
the
accumulator.
The
accumulator
remains
unchanged. The
condition
flags
are set as
a result
of
the
subtraction.
The Z flag is set
to
1
if
(A) = (r). The
CY
flag
is
set
to
1
if
(A)
< (r).
o
Cycles:
States:
Addressing:
Flags:
S
S
1
4
register
Z,S,P,CY,AC
S
* All mnemonics copyrighted
©Intel
Corporation 1976. 5-11
Cycles:
States:
Addressing:
Flags:
2
7
immediate
Z,S,P,CY,AC
RLC (Rotate left)
(An
+
1)
--
(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
position. Only
the
CY
flag is affected.
o
o o o
Cycles:
States:
Flags:
o
1
4
CY
1 1 1