i'm trying to figure out an algorithm in Axe that's quick and efficient for converting a list of numbers to a sprite. assume the hex data (which is stored in base 10) is located in L1. since there are 4 pixels in a byte i figured you could check for each pixel separately to turn it on. the left most pixel can be checked with If X>7 (X being the nibble being drawn) and the right most one can be checked with
!If X^2. but i'm unsure how to check whether the middle pixels should be turned on (other than comparing X to a list of possible values) i get the feeling i'm doing this completely wrong.
edit: i reread and decided that may be a little hard to understand so here's an example:
the hex string 00050A132346D6FF would be stored as Data(0,0,0,5,0,10,1,3,2,3,4,6,13,6,15,15)