inverting all bits in a byte


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jun 2011
    Location
    Indian Harbour Nova Scotia
    Posts
    108


    Did you find this post helpful? Yes | No

    Default Re: inverting all bits in a byte

    I have the new "enhanced" byte, with 9 bits.

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: inverting all bits in a byte

    Using comf would be about twice as fast there since you don’t have to do anything at all with the literal 0xFF.

Similar Threads

  1. An easy way to get bits to byte
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th November 2015, 12:16
  2. Problem with bits in byte array....
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 19th October 2011, 07:27
  3. Accessing several bits together in a byte or word...
    By rossfree in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th May 2007, 19:07
  4. Bits in Byte Arrays
    By crhomberg in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th April 2007, 23:37
  5. reading first four bits of a byte
    By kamet in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd January 2007, 09:50

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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