Mikroone - Online Help
SBC R[x], R[y], R[z] - Substraction with Carry
Operating Mode
R[x] := R[y] - R[z] - C
PC := PC + 1
Description
Substracts R[z] and Carry from R[y] and writes result to Register R[x].
Status Register
Carry - Bit := 1 if R[y] - R[z] - Carry < 0
Zero - Bit := 1 if result = 0
Binary Command
15 14 13 12 11 |
10 9 8 |
7 6 |
5 4 3 |
2 1 0 |
10110 |
Adr(x) |
-- |
Adr(y) |
Adr(z) |
Example
SBC R[3], R[6],R[4]
15 14 13 12 11 |
10 9 8 |
7 6 |
5 4 3 |
2 1 0 |
10110 |
011 |
-- |
110 |
100 |