Undocumented 8.1 commands: Difference between revisions
No edit summary |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
At the time of this revision for Color 64 v8.1a, there are notably several ML related commands and variables that are not documented as well as some basic shortcuts and appear to have been introduced from the 8.1 upgrade that never received any manual documentation. I find that comparing 8.0 code with 8.1 helps you along in figuring out what these undocumented items perform. Below are some of my notes and observations of what the code was in 8.0 and the observed shortcuts implemented in 8.1 Please note it is a work-in-progress and I don’t have all the answers (yet), so some of this is just “observation” without any conclusion! | At the time of this revision for Color 64 v8.1a, there are notably several ML related commands and variables that are not documented as well as some basic shortcuts and appear to have been introduced from the 8.1 upgrade that never received any manual documentation. I find that comparing 8.0 code with 8.1 helps you along in figuring out what these undocumented items perform. Below are some of my notes and observations of what the code was in 8.0 and the observed shortcuts implemented in 8.1 Please note it is a work-in-progress and I don’t have all the answers (yet), so some of this is just “observation” without any conclusion! | ||
Getting to understand the modified BASIC can be easy. If you have the ML loaded into your system, 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.... | |||
{| class="wikitable | |||
|- | |||
! Topic | |||
! Found in | |||
|- | |||
| <strong>Simple Addition</strong> | |||
| All overlays | |||
Color 64 allows simple addition without using < var >=< same var >+< value > | |||
So "a=a+12" can alternately just be: "a+12". This only works with numbers (not strings) and other times, this just fails completely. Buyer beware. | |||
|} | |||
{| class="wikitable | {| class="wikitable | ||
| Line 189: | Line 208: | ||
| [[File:at_ex1_81.png|center|300px]] | | [[File:at_ex1_81.png|center|300px]] | ||
|} | |} | ||
<u>Conclusion</u>: | <u>Conclusion</u>: Seems to serve as an “if” keyword - but testing this theory in a traditional sense resulted in a syntax error. | ||
|} | |} | ||
| Line 217: | Line 236: | ||
! Found in | ! Found in | ||
|- | |- | ||
| <strong> | | <strong>.32</strong> | ||
| <strong>√bbs.msgs</strong> | | <strong>√bbs.msgs</strong> | ||
<u>Researching / Unknown</u> | <u>Researching / Unknown</u> | ||
|} | |} | ||
Latest revision as of 19:31, 5 February 2026
At the time of this revision for Color 64 v8.1a, there are notably several ML related commands and variables that are not documented as well as some basic shortcuts and appear to have been introduced from the 8.1 upgrade that never received any manual documentation. I find that comparing 8.0 code with 8.1 helps you along in figuring out what these undocumented items perform. Below are some of my notes and observations of what the code was in 8.0 and the observed shortcuts implemented in 8.1 Please note it is a work-in-progress and I don’t have all the answers (yet), so some of this is just “observation” without any conclusion!
Getting to understand the modified BASIC can be easy. If you have the ML loaded into your system, 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....
| Topic | Found in |
|---|---|
| Simple Addition | All overlays
Color 64 allows simple addition without using < var >=< same var >+< value > So "a=a+12" can alternately just be: "a+12". This only works with numbers (not strings) and other times, this just fails completely. Buyer beware. |
| Topic | Found in | ||||||
|---|---|---|---|---|---|---|---|
| Use of "THEN" in IF | all
Conclusion: “then” statements are not required for “if/then” – if <condition> <action> is legal |
| Topic | Found in | ||||||
|---|---|---|---|---|---|---|---|
| .36 | √bbs.init
Conclusion: Undetermined, although notice line in 8.0 version that line 13645 has been dropped for the 8.1 variant. This command only occurs on this line in the overlays as part of the command prompt. When I dropped everything in line 13640 and just had “.36:return”, there was no box printed (of course), but the command entry functioned normally. This was also true if I just omitted everything except “return” – so I’m not sure what “.36” brings to the table. |
| Topic | Found in | ||||||
|---|---|---|---|---|---|---|---|
| .31 and !55 | √bbs.msgs
Conclusion: Documentation originally stated “.31” was not used - but it clearly is - and may be a more-refined or customized version of inputting data from disk (.01). “!55” was undocumented and appears to be a variable replacement for “@0=<reverse n>”, where @0 is for disk-and-key input and stores a result. There are several cases where “.31” and “!55” are used in conjunction with each other. |
| Topic | Found in | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| .38 / .39 / .40 / .41 and “;” variables | √bbs.msgs
Observation (no conclusion): This is one of the more intriguing finds and it’s a hot mess – lines 3140, 3555 and 1525 are obviously the topics of interest. I can’t tell you what’s going on here, but here are some observations from my research:
|
| Topic | Found in | ||||||
|---|---|---|---|---|---|---|---|
| £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 “and 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)” |
| Topic | Found in | ||||||
|---|---|---|---|---|---|---|---|
| @ | √bbs.msgs
Conclusion: Seems to serve as an “if” keyword - but testing this theory in a traditional sense resulted in a syntax error. |
| Topic | Found in | ||||||
|---|---|---|---|---|---|---|---|
| [var$] | √bbs.msgs
Conclusion: Can serve as an empty variable check (null) |
| Topic | Found in |
|---|---|
| .32 | √bbs.msgs
Researching / Unknown |
























