BIN2HEX is a simple function. It takes a string of 64 ones and zeros (known as binary) from
variable Str0 and converts it to a much smaller string of 16 hexadecimal characters (0-F). The
program uses string variables Str0, Str1, Str2, and real variable X. Upon cleanup it deletes all
but Str0.
HEX2BIN is a simple function, the exact opposite of BIN2HEX. It takes a string of 16 hexadecimal
characters from variable Str0 and converts it to a string of 64 ones and zeros, known as binary.
The program uses string variables Str0, Str1, Str2, and real variable X. Upon cleanup it deletes
all but Str0.
HSPR draws the contents of binary style Str0 to the home screen. The coordinate debugging was
tricky to say the least, but works for 8x8 sprites. The program uses real variable A and B, and
string variable Str0.
QSPR draws the contents of binary style Str0 to the graph screen. It's meant to work for 8x8
sprites, but can be any height. The program uses real variables A, F, & G, and string variable
Str0. Real variables F and G must be predefined as the (x,y) offset for the sprite; (F,G) =
(x,y). This is important for editing Pic0 for use as the xLib sprite table.
SP2ST is a simple function to understand. It takes the top left 8x8 pixels from the graphscreen
and converts them to a binary style string, Str0. It uses real variables X and Y, and string
variable Str0.