![]() |
|
| << Previous | Next >> | |
| | |
SBC A,(HL) Subtract Through Carry Rabbit 4000/5000 Instruction
7F 9E SBC A,(HL) 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/5000 assemblers view "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.
| Rabbit Instructions | << Previous | Next >> | rabbit.com |