Closed seblovett closed 10 years ago
it should be with carry status flag, a program using the instruction wont necessarily know what the carry from first calculation will be
Okay thanks. @ashleyjr - I've started this fix. Will complete tonight.
Fixed, but not tested. Will close when fully verified
Can I clarify this behaviour. Mainly for SUC
It's written as Op1 - Op2 - ~Cin
However, putting Cin = 0
will actually add 1 to the result. Is this correct?
yeah thats correct as its 2's compliment subtraction
Ah, yes. I understand now! Cheers.
@mw92 - can you clarify the behaviour of the ADC instruction. Should it be
A + B + 1
orA + B + c
where c is the carry from the status register?