<< Previous | Next >>

> SBC A,r Subtract with Carry Rabbit 2000/3000/3000A Instruction

> Opcode | Instruction | Clocks | Operation
> ---- | SBC A,r | 2 | A = A - r - CF
> 9F | SBC A,A | 2 | A = A - A - CF
> 98 | SBC A,B | 2 | A = A - B - CF
> 99 | SBC A,C | 2 | A = A - C - CF
> 9A | SBC A,D | 2 | A = A - D - CF
> 9B | SBC A,E | 2 | A = A - E - CF
> 9C | SBC A,H | 2 | A = A - H - CF
> 9D | SBC A,L | 2 | A = A - L - CF

> Flags | ALTD | IOI/IOE
> S | Z | L/V | C | F | R | SP | S | D
> · | · | V | · | · | · |  |  |

> #### 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.

<< Previous | Next >>