In SX Microcontrollers, SX/B Compiler and SX-Key Tool, kingneb wrote: This statement moves the two bit unit over to the highest position in the byte: [code] tris_b = 0 rb = 0 unit1 var byte unit2 var byte unit1 = 3 unit2 = 2 rb = unit2 << 6 [/code] This statement moves the two bit unit over to the second highest position: [code] tris_b = 0 rb = 0 unit1 var byte unit2 var byte unit1 = 3 unit2 = 2 rb = unit2 << 4 [/code] How do you move unit1 to the highest position and unit2 to the second highest position? The result should be 10110000. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=94462#m94496 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)