![]() |
|
| << Previous | Next >> | |
| | |
SBC A,n Subtract Through Carry Rabbit 2000/3000/4000/5000 Instruction
Rabbit 2000/3000/4000 Rabbit 5000
Description
Subtracts the C flag and the 8-bit constant n from A.The difference 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,n" and "SBC n" as equivalent instructions. In the latter case, A is used even though it is not explicitly stated.
| Rabbit Instructions | << Previous | Next >> | rabbit.com |