Quote Originally Posted by Tabsoft View Post
Thanks for the feedback.

I still think there are issues with this approach.
I ran a test and printed the output.
I ran a For/Next loop from 0 to 255.
e.g.
For i = 0 to 255
Lookdown2 i, <= [%00000000,%00000001,%00000010,%00000100,%00001000, %00010000,%00100000,%01000000,%10000000,%11111111], j
Next i

The output resulted in 247 wrong values out of 256.

I am attaching the output here.

Again, perhaps I'm wrong and missing something?
Attachment 7724
Yes, you are right. We should always use truth tables just to make sure it is correct. We were just giving Matias a general idea. Try this now,

Code:
For i = 0 to 255
Lookdown2 i, <= [%00000000,%00000001,%00000011,%00000111,%00001111, %00011111,%00111111,%01111111,%11111111], j
Next i