Isn't this the wrong list? pins = pins * 16 At 07:15 PM 11/19/97 +0000, you wrote: >Hi >I thought you might like a challenge that I was thinking of for the Basic >Stamp 1 (BS1). When I tried this as a test program, I used a lookup table >but there must be a shorter solution. > >Anyway on with the problem. Just a simple line mirror actually, lines as >below. The input comes on to the first 4 bits of the 8 bit port and gets >output on the last four. With no swap nibbles command there should be some >interesting maths involved. > >Input Bit Output Bit >0 4 >1 5 >2 6 >3 7 > > > > >Enjoy >Tim Kerby > > >------------------------------------------------------------------ >Personal Web Pages: http://web.ukonline.co.uk/members/tim.kerby/ >Email: tim.kerby@ukonline.co.uk >------------------------------------------------------------------ > > Bruce Cannon Style Management Systems Remember: Electronics is changing your world...for good!