Difference between Add and Adds
James Newman
Posts: 133
What's the difference? The manual says that the prop stores signed numbers as two's complements... so aren't all the arithmetic operations the same for unsigned or signed numbers? If I'm thinking right, the only difference should be in display and comparing. Someone fill me in.
Comments
The unsigned ADD puts the carry into the C flag while the signed ADDS puts a signed overflow into the C flag.
Similarly, SUB puts the borrow into the C flag while the SUBS puts a signed underflow into the C flag.
Thanks for the quick response, means I can get on with what I was doing.