View Full Version : Xor?
skimask
- 11th October 2008, 17:27
Look under Bitwise NOT in the manual
Byte = ~ Byte
EDIT: I've got no idea why this post ended up ahead of jderson's post below!!!
Jerson
- 11th October 2008, 17:56
EDIT: I've got no idea why this post ended up ahead of jderson's post below!!!
You're a prophet ;)
jderson
- 11th October 2008, 18:05
I'm trying to invert all bits of a byte variable, no matter what the value is. Do I need to make a lookup table for all the numbers?
jderson
- 11th October 2008, 19:05
Thank you, Skimask. It works now, but I don't see where ~ is in the manual.
dhouston
- 11th October 2008, 19:46
I've got no idea why this post ended up ahead of jderson's post below!!!Look at the timestamps.
dhouston
- 11th October 2008, 19:49
Thank you, Skimask. It works now, but I don't see where ~ is in the manual.There's a table listing all operators near the beginning of the manual - I don't have the manual handy or I'd give the page number.
jderson
- 11th October 2008, 20:05
I found it on page 32, thank you.
skimask
- 12th October 2008, 02:50
Look at the timestamps.
Well, that's what I mean. I was posting AFTER he already posted (obviously)...
Something was/is an hour off...wasn't my PC...
RussMartin
- 12th October 2008, 06:13
I'm trying to invert all bits of a byte variable, no matter what the value is. Do I need to make a lookup table for all the numbers?
I may be out of practice with binary operations. Couldn't you just use (255 - VARIABLE)?
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.