Download Print this page

ZiLOG Z80380 User Manual page 193

Advertisement

Z
ILOG
SBC A,src
← A - src - C
Operation:
A
The source operand together with the Carry flag is subtracted from the accumulator and the
difference is stored in the accumulator. The contents of the source are unaffected. Two's
complement subtraction is performed.
Flags:
S:
Set if the result is negative; cleared otherwise
Z:
Set if the result is zero; cleared otherwise
H:
Set if there is a borrow from bit 4 of the result; cleared otherwise
V:
Set if arithmetic overflow occurs, that is, if the operands are of different signs and the
result is of the same sign as the source; cleared otherwise
N:
Set
C:
Set if there is a borrow from the most significant bit of the result; cleared otherwise
Addressing
Mode
Syntax
R:
SBC A,R
SBC A,RX
RX:
IM:
SBC A,n
IR:
SBC A,(HL)
X:
SBC A,(XY+d)
Field Encodings: r:
per convention
y: 0 for IX, 1 for IY
w: 0 for high byte, 1 for low byte
DC-8297-03
src = R, RX, IM, IR, X
Instruction Format
10011-r-
11y11101 1001110w
11011110 ——n—
10011110
11y11101 10011110 ——d—
SUBTRACT WITH CARRY (BYTE)
Execute
Time
2
2
2
2+r
4+r
Z380
U
'
M
SER
S
ANUAL
SBC
Note
I
5-159

Advertisement

loading
Need help?

Need help?

Do you have a question about the Z80380 and is the answer not in the manual?

Subscribe to Our Youtube Channel