Intel MCS-80/85 Computer Hardware User Manual


 
THE INSTRUCTION SET
SBB 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 accumulator. The
result is placed in the accumulator.
0
0
1
0
Cycles:
2
States: 7
Addressing:
reg. indirect
Flags:
Z,S,P,CY,AC
SBI data (Subtract immediate with
borrow)
(A)
-
(A)
- (byte
2)
-
(CY)
The contents
of
the second byte of the in-
struction and the contents
of
the
CY
flag
are both subtracted from the accumulator.
The
result is placed in the accumulator.
1 o
data
Cycles:
States:
Addressing:
Flags:
1
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.
o
o
D
D
Cycles:
States:
Addressing:
Flags:
D
1
o
1
4 (8085), 5 (8080)
register
Z,S,P,AC
o
*AII mnemonics
copyrighted©lntel
Corporation
1976.
5-8
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.
o o 1 o o o
Cycles:
3
States:
10
Addressing: reg. indirect
Flags: Z,S,P,AC
DCR r (Decrement Register)
(r) - (r) - 1
The content
of
register r is decremented by
one. Note:
All condition flags except CY
are affected.
o
o
D D
Cycles:
States:
Addressing:
Flags:
o
1
o
1
4 (8085), 5 (8080)
register
Z,S,P,AC
DCR M (Decrement memory)
«H)
(L»
- «H)
(L»
- 1
1
The content
of
the memory location whose
address is contained in the
Hand
L
registers is decremented by one. Note:
All
condition flags except
CY
are affected.
o
o
1 1
Cycles:
States:
Addressing:
Flags:
o
3
10
o
reg. indirect
Z,S,P,AC
1