<< Previous | Next >>

SBC A,n     Subtract with Carry     Rabbit 2000/3000/4000 Instruction
Opcode
Instruction
Clocks
Operation

DE n

SBC A,n

4 (2,2)

A = A - n - CF


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

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 Rabbit 4000 assembler views "SBC A,n" and "SBC n" as equivalent instructions. In the latter case, A is used even though it is not explicitly stated.


<< Previous | Next >>