Intel 8080 Laptop User Manual


 
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.
SBI
data
(Subtract
immediate
with
borrow)
(A)
~
(A) -
(byte
2) - (CY)
The
contents
of
the
second
byte
of
the
instruction
and
the
contents
of
the
CY
flag
are
both
subtracted
from
the
accumulator.
The
result
is
placed
in
the
accumulator.
Cycles:
States:
Addressing:
Flags:
o
2
7
reg.
indirect
Z,S,P,CY,AC
o
1 I
I 0
data
Cycles:
States:
Addressing:
Flags:
2
7
immediate
Z,S,P,CY,AC
o
INR
r
(Increment
Register)
(r)
~
(r) + 1
The
content
of
register r
is
incremented
by
one.
Note:
All
condition
flags
except
CY
are
affected.
SUI
data
(Subtract
immediate)
(A)
~
(A) -
(byte
2)
The
content
of
the
second
byte
of
the
instruction
is
subtracted
from
the
content
of
the
accumulator.
The
result
is
placed
in
the
accumulator.
o
data
D
1 r 0 I 0
Cycles:
States:
Addressing:
Flags:
2
7
immediate
Z,S,P,CY,AC
Cycles:
States:
Addressi
ng:
Flags:
1
5
register
Z,S,P,AC
INR
M
(Increment
memory)
((H)
(L))
~
((H)
(L))
+ 1
The
content
of
the
memory
location
whose
address
is
contained
in
the
Hand
L registers
is
incremented
by
one.
Note:
All
condition
flags
except
CY
are
affected.
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
accumulator.
1
I
0
I
0
S
I
S
I
S
I
Cycles:
1
States:
4
Addressing:
register
Flags:
Z,S,P
,CY,AC
o
I 0
Cycles:
States:
Addressing:
Flags:
o
3
10
reg.
indirect
Z,S,P,AC
o o
SBa
M
(Subtract
memory
with
borrow)
(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
both
subtracted
from
the
accumula-
tor.
The
result
is
placed
in
the
accumulator.
1
I
0
,
0
1
I
1
I
1
I
0
I
Cycles:
2
States:
7
Addressing:
reg.
indirect
Flags:
Z,S,P,CY,AC
4-7
OCR r
(Decrement
Register)
(r)
~
(r)-1
The
content
of
register
r is
decremented
by
one.
Note:
All
condition
flag~
except
CY
are
affected.
0
I
0
I
D
I
D
D
I
1
I
0
I
1
Cycles:
1
.f'
States:
5
Addressing:
register
Flags:
Z,S,P,AC