Invert variable
bpislife
Posts: 10
Is there a way I can invert a variable?
For example, say a byte data is %10101010. Can I make it %01010101 with a simple command? I looked and could have swore I saw something, I just can't remember where.
I was thinking of doing an XOR against %11111111 but I am not sure how to XOR in spin either.
I am sure there is a simple way to do this, but I have no clue.
For example, say a byte data is %10101010. Can I make it %01010101 with a simple command? I looked and could have swore I saw something, I just can't remember where.
I was thinking of doing an XOR against %11111111 but I am not sure how to XOR in spin either.
I am sure there is a simple way to do this, but I have no clue.
Comments