In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ahunter10 wrote: John, thanks for reminding me about RA having only four inputs. I will actually be using RB or RC, with 8 inputs. the step 2 would add two each time. this would not always work. I think what i need to be doing is shifting the bits, or multiplying by 2. So, i could do something like this: RA=%0001 for idx = 0 to 3 RA = RA * 2 next RA = 1 = %0001 RA = 2 = %0010 RA = 4 = %0100 RA = 8 = %1000 thanks a lot for pointing me in the right direction. Does anyone else have any other ideas? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=138451#m138459 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)