SBC A,(HL)
Subtract with Carry
Rabbit 4000 Instruction
|
|
7F 9E
|
SBC A,(HL)
|
7 (2,2,1,2)
|
A = A - (HL) - CF
|
Description
Subtracts the C flag and the data whose address is in HL from 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 unchanged if A is equal to the data being subtracted from it.
The Rabbit 4000 assembler views "SBC A,(HL)" and "SBC (HL)" as equivalent instructions. In the latter
case, A is used even though it is not explicitly stated.
The opcode for this instruction is different than the same instruction in the Rabbit 2000, 3000 and 3000A.