
Instruction Reference Manual
131
Description
Subtracts the C flag and the data whose address is:
•
the data in HL, or
•
the sum of the data in IX and a displacement d, or
•
the sum of the data in IY and a displacement d
from the data in A. The result is stored in A.
These operations output an inverted carry:
•
The C flag is set if A is less than the data being subtracted from it.
•
The C flag is cleared if A is greater than the data being subtracted from it.
•
The C flag is unchaged if A is equal to the data being subracted 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
•
•
•
•
Содержание 2000
Страница 2: ...ii Rabbit 2000 3000 Microprocessor...
Страница 4: ...iv Rabbit 2000 Microprocessor...
Страница 16: ...12 Rabbit 2000 3000 Microprocessor...
Страница 164: ...160 Instruction Reference Manual...
Страница 172: ...168 Rabbit 2000 3000 Microprocessor...
Страница 174: ...170 Rabbit 2000 3000 Microprocessor...