THE INSTRUCTION SET
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.
0 0
0
1 1 0
Cycles: 2
States: 7
Addressing: reg.
indirect
Flags: Z,S,P,CY,AC
ACI data (Add
immediate
with
carry)
(A)
-
(A)
+ (byte 2) +
(CY)
The
content
of
the second byte
of
the
in-
struction
and
the
content
of
the
CY flag are
added
to
the
contents
of
the
accumulator.
The result is placed in
the
accumulator.
SUB M (Subtract memory)
(A)
-
(A)
- «H)
(L))
The
content
of
the memory
location
whose
address
is
contained in
the
Hand
L
registers
is
subtracted
from the
content
of
the
accumulator.
The result is placed in
the
accumulator.
0 0 1 0 1 0
Cycles: 2
States: 7
Addressing:
reg.
indirect
Flags:
Z,S,P,CY,AC
SUI data (Subtract immediate)
(A)
-
(A)
- (byte 2)
The
content
of
the second byte
of
the
in-
struction
is
subtracted
from the
content
of
the
accumulator.
The result is placed in
the
accumulator.
r--------o---o-d-at-a-----------o~1
1~-1--~-·----O----d-at-a-O---1----1---0~
Cycles:
States:
Addressing:
Flags:
2
7
immediate
Z,S,P,CY,AC
SUB r (Subtract Register)
(A)
- (A) - (r)
The
content
of
register r is
subtracted
from
the
content
of
the accumulator. The result
is
placed in
the
accumulator.
o
o
Cycles:
States:
Addressing:
Flags:
o
S
S
1
4
register
Z,S,P,CY,AC
S
*AII mnemonics
copyrighted©lntel
Corporation 1976.
5-7
Cycles:
States:
Addressing:
Flags:
2
7
immediate
Z,S,P,CY,AC
SBB r (Subtract Register
with
borrow)
(A) -
(A)
- (r) -
(CY)
The
content
of
register r and
the
content
of
the
CY
flag are both
subtracted
from
the
accumulator.
The result
is
placed in
the
ac-
cumulator.
o
o
Cycles:
States:
Addressing:
Flags:
1
S I S I S
1
4
register
Z,S,P,CY,AC