bgri / m100LE

A Wordle-like game for the vintage Tandy (Radio Shack) Model 100
11 stars 1 forks source link

Olivetti + date refactor #43

Closed hackerb9 closed 2 years ago

hackerb9 commented 2 years ago

Closes #41. Closes #38. Closes #37.

Added support for the Olivetti M10's little-endian dates (DD/MM/YY).

Also, numbers in dates no longer need to be two digits. 09/09/99 is the same as 9/9/2099 (and 9/ 9/1999,) .

Blank lines in the source are now represented by a line number and a single tick mark.

3999 '
4000 REM VT52 CURSOR MOVEMENT

Makefile added so I can easily generate the tokenized and/or uncommented versions by typing make. If I want the generated files committed to git, I can use make commit. Note that this requires my tandy-tokenize program for converting the .DO file to .BA.

adjunct/removecomments now preserves any lines that contain two single ticks in a row, which is useful for line 16 'MD=1. May also be useful if at some point the uncommented version should tell people where they can find the fully commented version.

CMPRSS.DO now handles the weird situation where, after allocating space using SAVEM, the program drops back to interactive mode until the user types RETURN. As with the NEC, I was able to find the keyboard input buffer and POKE directly into it so the user need not notice.

NOTE: This program has gotten so large that the commented version can barely run on a Tandy 200. Sometimes it has an ?OM error in the middle of playing. After the M release, shrinking the program should be one of the first priorities.