Instruction Reference Manual
93
Description
Subtracts the Carry Flag, CF, and the data whose address is:
•
the data in word register HL, or
•
the sum of the data in index register IX and a displacement d, or
•
the sum of the data in index register IY and a displacement d
from the data in the Accumulator. The result is stored in the Accumulator.
These operations output an inverted carry:
•
The Carry Flag is set if the Accumulator is less than the data being subtracted from it.
•
The Carry Flag is cleared if the Accumulator is greater than the data being subtracted from it.
SBC A,(HL)
SBC (IX+d)
SBC (IY+d)
Opcode
Instruction
Clocks
Operation
9E
SBC A,(HL)
5 (2,1,2)
A = A - (HL) - CF
DD 9E d
SBC (IX+d)
9 (2,2,2,1,2)
A = A - (IX + d) - CF
FD 9E d
SBC (IY+d)
9 (2,2,2,1,2)
A = A - (IY + d) - CF
Flags
ALTD
I/O
S
Z
L/V
C
F
R
SP
S
D
•
•
V
•
•
•
•
Summary of Contents for 2000
Page 2: ...ii Rabbit 2000 3000 Microprocessor...
Page 4: ...iv Rabbit 2000 Microprocessor...
Page 16: ...12 Rabbit 2000 3000 Microprocessor...
Page 112: ...108 Rabbit 2000 3000 Microprocessor...
Page 120: ...ii Rabbit 2000 3000 Microprocessor...