oops, straight after the dostuff: label,

Code:
LCDOUT $FE,2                                    'LCD cursor return home
FOR count = 0 TO cursorposition
LCDOUT $FE, $14        'move cursor right
NEXT count
to set up the display for the next frame.
None of this is tested, but you should get the idea.