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 ------------------------------------------------------------------