Shop OBEX P1 Docs P2 Docs Learn Events
negation vs. additive inverse — Parallax Forums

negation vs. additive inverse

K2K2 Posts: 693
edited 2010-08-18 10:52 in Propeller 1
In the PM, the NEG instruction "Get the negative of a number"

The NEGC and NEGZ instructions "Get...the additive inverse of a number"

Does this mean that NEG is a 1's compliment negation, and NEG C&Z a 2's compliment negation? If so, I wish the manual would state that. If not, I wish the manual would use consistent terminology.

I guess this illustrates how an example or two can spare a lot of verbiage and confusion.

Comments

Sign In or Register to comment.