Shop OBEX P1 Docs P2 Docs Learn Events
Reversing 8 bits — Parallax Forums

Reversing 8 bits

LuckyLucky Posts: 98
edited 2010-03-31 03:10 in Propeller 1
How do you get 8 bits arranged LSB first to MSB first?······

······················································ -Thanks

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"You do not really understand something unless you can explain it to your grandmother."


-Lucky[size=-1][/size]

Comments

  • LuckyLucky Posts: 98
    edited 2010-03-31 03:00
    Nevermind, I just found the Bitwise Reverse (><=) operator

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "You do not really understand something unless you can explain it to your grandmother."


    -Lucky[size=-1][/size]
  • Mike GreenMike Green Posts: 23,101
    edited 2010-03-31 03:01
    You use the reverse shift operator ("><"). Read the description in the Propeller Manual.
  • LuckyLucky Posts: 98
    edited 2010-03-31 03:10
    Thanks anyway!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "You do not really understand something unless you can explain it to your grandmother."


    -Lucky[size=-1][/size]
Sign In or Register to comment.