SBC A,r
Subtract with Carry
Rabbit 2000/3000/3000A Instruction
|
| ---- |
SBC A,r |
A = A - r - CF |
| 9F |
SBC A,A |
A = A - A - CF |
| 98 |
SBC A,B |
A = A - B - CF |
| 99 |
SBC A,C |
A = A - C - CF |
| 9A |
SBC A,D |
A = A - D - CF |
| 9B |
SBC A,E |
A = A - E - CF |
| 9C |
SBC A,H |
A = A - H - CF |
| 9D |
SBC A,L |
A = A - L - CF |
Description
Subtracts the C flag and the data in r (any of the registers A, B, C, D, E, H, or L) 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 unchanged if A is equal to the data being subtracted from it.