OK, this is what I came up with to write the line number on their repective lines. How do I make this more elegant/neater? A counter loop for the line number maybe?


'Chip registers and inits
cmcon = 7
trisa = %00000000
trisb = %00000000
porta = $00
portb = $00

'Vars and Cons
screen var portb.0


main:

pause 500 'wait for the LCD to startup

serout screen,n9600,[$FE,12,4,1] 'clear the screen position and hide cursor
serout screen,n9600,["Line 1"] 'Print on line 1
pause 500
serout screen,n9600,[$FE,12,4,1,10] 'Clear screen and position to line 1
serout screen,n9600,["Line 2"] 'print on line 2
pause 500
serout screen,n9600,[$FE,12,4,1,10,10] 'Clear screen and position cursor to line3
serout screen,n9600,["Line 3"] 'Print on line 3
pause 500
serout screen,n9600,[$FE,12,4,1,10,10,10] 'Go to line 4
serout screen,n9600,["Line 4"] 'Print on line 4


''Just make sure the chip is running:
'high portb.3
'pause 100
'low portb.3
'pause 100

goto main ' loop