Let me state what I know already:
The overflow status is set when the results aren't in this range:
Code: Select all
-128 <= x <= 127
The Carry status is set when the result is greater than 127, but what happens when a subtraction result is less than -128. My guess is that it would be clear, but could someone please point me in the right direction.
Stated another way:
Code: Select all
Carry Result:
__SBC__ __ADC__
in range | 0 | 1 |
out of range | ? | ? |
------- -------