Xor?


Closed Thread
Results 1 to 9 of 9

Thread: Xor?

  1. #1
    skimask's Avatar
    skimask Guest

    Default

    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!!!

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default

    EDIT: I've got no idea why this post ended up ahead of jderson's post below!!!
    You're a prophet

  3. #3


    Did you find this post helpful? Yes | No

    Default Xor?

    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?

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Thank you, Skimask. It works now, but I don't see where ~ is in the manual.

  5. #5
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    I've got no idea why this post ended up ahead of jderson's post below!!!
    Look at the timestamps.

  6. #6
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jderson View Post
    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.

  7. #7


    Did you find this post helpful? Yes | No

    Default

    I found it on page 32, thank you.

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dhouston View Post
    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...

  9. #9
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jderson View Post
    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)?
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

Similar Threads

  1. A logic gate chip with 1 ea XOR and 2 ea AND gates?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 5th August 2009, 05:29
  2. XOR result different with PC application
    By Pic2008 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 26th January 2009, 04:56
  3. Xor Sum
    By Sphere in forum General
    Replies: 3
    Last Post: - 7th December 2006, 07:52
  4. Exclusive OR - XOR
    By Archangel in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th September 2006, 09:44
  5. Checksum / CRC8 / CRC16
    By treitmey in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2003, 14:40

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts