* Start at PROGRAM (16509)
LOOP for LINE
* is it a NEWLINE? If so, done
* Print the LINE NUMBER
* Get the LINE LENGTH
LOOP on LINE LENGTH
- Is GETCHAR a 126/7EH? If so, skip over the next five bytes
- Display the character (which may be a TOKEN expanded to multiple characters)
- Next character
Trying it ... yes. The standard LIST starts at the top of the display, and prints down until it either finishes, or runs out of lines on the display. In which case error "5/0" is listed (Error Code 5 means "No more room on the screen")
List Remedy, by contrast, starts near the bottom of the display and scrolls up. If the display gets full, it pauses until a key is pressed, then continues on until all lines have been listed. Much better