--- In gbadev@yahoogroups.com, "Morten Pedersen" <escapekey@s...> wrote:
>
> of course this might very well be purely academic, but the result
> is still incorrect regardless of how you turn it. ((0-0)+0+(c))
> should never result in 1.
Academically, does Peano arithmetic define 'c'?
What's incorrect academically is to use the carry flag for anything
other than carrying from less significant to more significant place
values. Starting again at the lowest place requires resetting the
carry, that is, using SUB or ADD instead of SBC or ADC.
It's like claiming that little-endian storage of integers is incorrect
because the English language writes them big-endian.
--
Damian