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!!!
Printable View
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!!!
You're a prophet ;)Quote:
EDIT: I've got no idea why this post ended up ahead of jderson's post below!!!
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?
Thank you, Skimask. It works now, but I don't see where ~ is in the manual.
I found it on page 32, thank you.