GreyHairOldGuy
New Member
DIM XXX AS BYTE
XXX = 0
LOOP:
XXX = XXX + 1
SEROUT TX, 9600, "Number=", #xxx, 0xd
'(or LCDOUT)
goto loop
Obviously this will print Number= 0-255 and repeat forever.
How do I make the same program print 00-FF instead of 0-255?
Or in other words, is there a simple way to display HEX directly?
XXX = 0
LOOP:
XXX = XXX + 1
SEROUT TX, 9600, "Number=", #xxx, 0xd
'(or LCDOUT)
goto loop
Obviously this will print Number= 0-255 and repeat forever.
How do I make the same program print 00-FF instead of 0-255?
Or in other words, is there a simple way to display HEX directly?