Something like this
Code:
B var word
counter var word
main:
counter = 0
b = 0
lcdout $FE,1    ' Clear LCD
for counter = 0 to 255


LCDOUT $fe,$2,b," ",#counter
PAUSE 250
b = b + 1
next counter
goto main