Undocumented 8.1 commands
At the time of this revision for Color 64 v8.1a, there are notably several ML related commands and variables that are not documented from the original 8.0 manuscript, as well as some basic shortcuts and appear to have been introduced from the 8.1 upgrade. A lot of reverse engineering was done by comparing 8.1 code to the predecessor versions.
Below are some of my notes and observations of what the code was in 8.0 or 7.37, and the observed shortcuts implemented in 8.1.
Please note it is a work-in-progress and this part of the wiki gets updated frequently! Some of my observations may still be without conclusion as they are under active investigation! That said, getting to understand some of the modified BASIC can be easy. If you have the ML loaded into your system (loading and running +SHELL), you can write your own program to test out the modified BASIC by having your first line call the ML routine: SYS49923
10 SYS49923 20 #"Test of program" 30 etc....
General Programming
| Topic | Notes |
|---|---|
| Simple Addition | All overlays
Color 64 allows simple addition without using < var >=< same var >+< value > So |
| Topic | Notes | ||||
|---|---|---|---|---|---|
| "THEN" with IF | All Main Overlays
Conclusion: “then” statements are not required for “if/then” – if <condition> <action> is legal in most cases. |
| Topic | Notes | ||||||
|---|---|---|---|---|---|---|---|
| if...£ | √bbs.msgs
Observation: Observe the 8.1 authors reversed the checks in variable comparisons as the conditions, with end-result being the same. Conclusion: Serves as an “not” function “(lv is not less than cm%(2,2) and lv not less than cm%(29,2) and fr does not equal 1, then print (P)rivate)” Another example:
|
| Topic | Notes | ||||||
|---|---|---|---|---|---|---|---|
| @ | √bbs.msgs
Conclusion: Seems to serve as an “if” keyword - but testing this theory in a traditional sense resulted in a syntax error. |
| Topic | Notes | ||||||
|---|---|---|---|---|---|---|---|
| [var$] | √bbs.msgs
Conclusion: Can serve as an empty variable check (null) |
ML Commands
| Topic | Notes | ||||
|---|---|---|---|---|---|
| .8 | All Main Overlays
.8 - Session/Input Poll) Previously documented in 8.0 documentation as "Equivalent of the "%" command…", this appears to be rewritten in version 8.1 - and is particularly noticeable in bbs.msgs where comparing the two show that
Polls for typed input (non-blocking, local or remote), normalizes transient input-status states, and refreshes session status. Typically used inside scrolling output/file display loops and before slow operations. Side effects include updating P (0 OK, 1 user abort, 255 carrier lost/timeout) and possibly the same underlying status/character registers used by .00. While further testing is required, theoretically this should fully replace use of |
| Topic | Notes | ||||||
|---|---|---|---|---|---|---|---|
| .9 | All Main Overlays
Previously documented in 8.0 documentation as a "do not use" command that replaces "&" function, this appears to be repurposed for single key command input replacing the traditional "gosub110" routine. .9 – Single-Key Command Input Poll Overview The Previous iterations of Color 64 used When a key is pressed:
When no key is pressed:
Examples (bbs.msgs):
So .9 is essentially the modern ML command that replaced the old sysc(4) “get typed character” behavior, with a nice extra: it can be told “only accept these characters”. |
| Topic | Notes | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| .31 and !55 | √bbs.msgs
Conclusion: .31 – Message-Aware Disk Input (Version 8.1) Earlier documentation listed the ML command .31 as "not used." Analysis of Version 8.1 confirms this is incorrect. In Color 64 v8.1, the Comparison: Version 8.0 vs Version 8.1
|
| Topic | Notes | ||||||
|---|---|---|---|---|---|---|---|
| .36 | √bbs.init
.36 – Prompt-Cycle Housekeeping (Behavior Unconfirmed) Category: ML Command Seen in: All Main Overlays (prompt printing routine) Overview The In testing within the live BBS environment, removing Observed Call Pattern
Testing Notes
Working Hypothesis
Summary
|
| Topic | Notes | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| .38 / .39 / .40 / .41 and “;” variables | √bbs.msgs
Message Relink Commands in v8.1
.38 – Relink Iterator Initialization (v8.1) The It is designed to be used as the first step in a command sequence:
This sequence replaces the more BASIC-driven record scanning logic found in v8.0. What .38 Does
In BBS.MSGS, this binding typically associates:
The ML iterator then uses internal scratch registers such as:
These are later examined by BASIC to determine loop control and branching. In v8.0, message scanning and linking logic was performed directly in BASIC, including character comparisons and explicit loop control. In v8.1, this logic was moved into machine language for speed and structural cleanliness. BASIC now acts primarily as a decision layer while ML handles the iteration mechanics. Important Notes
Summary The It should be understood as a setup command rather than an action command. |
ML Variables
| Topic | Notes |
|---|---|
| !8 | Wrap/Width Threshold
The Example: In the example above, if a line is shorter than !8, they force an explicit newline behavior; if it’s longer, they let natural wrapping do the work. |
| Topic | Notes |
|---|---|
| !55 | !55 – Message Record Delimiter Flag
Refer to .31 command above. |
ML Functions
| Topic | Notes | ||||
|---|---|---|---|---|---|
| @31 | @31 – Sequential Read (Enhanced)
Overview: @31 is a machine language function introduced in later Color 64 versions that replaces the older @5 + !40 sequential line-read pattern of version 8.0. It retrieves the next logical record from an open sequential file and updates ST as a side effect. Higher-Level Replacement for @5
It is used prominently in merge message routines within BBS.MSGS. Behavior: • Returns a string (typically assigned to I$) • Updates ST (disk/file status) • Designed for use inside ST-controlled loops • Commonly paired with @9 (enhanced FRE) for memory safety
2330 T=@9:[I$=@31:II=ST:GOSUB2400 2335 T=T-LEN(I$):A$(A)=I$:A+:@[II] AND A<ML+4 AND T>=CM%(7,.):GOTO505
1) Sequential File Read
2) Status-Driven Looping
Frequently paired with the enhanced FRE function In comparison:
Notes:
Conclusion: @31 is an enhanced sequential-record read function used primarily in message handling and merge routines. It streamlines record retrieval, updates ST for loop control, and is typically combined with @9-based memory budgeting safeguards. |




























