A82: Invert Number


[Prev][Next][Index][Thread]

A82: Invert Number



I need to get the opposite of a number. In TIbasic, you could do -X->X.
How can I do this in Asm? If I could just xor the sign bit, that should
do it. Now, if only I understood xor and where (if there is one) the
sign bit would be. In case it matters, I'd be using it on an 8bit
register, probably the a reg.


Follow-Ups: