Hi!
In feature requests were this article written but always marked as invalid.
Reason for invalid mark was that if it's not ML program it can crash.
So, look at AUTORUN:
When is Autorun used, it must to be Basic program, also when it's Basic program for C64 Basic V2 start address is at $0801, when is used on C128 where Basic begins on $1C01 or $4001 it's bigger problem, Basic incompatibility too. If it's not Basic program it crashes, if is in Autorun settings set "Load to Basic" start it's bigger problem.
So AUTOSYS:
The same - it must to be ML program and if is not (Basic program or data only) it crashes - so nothing other than Autorun. You can disagree and say "it stops machine" - In most cases it cause jump into ML Monitor or breaks into READY prompt like Stop+Restore...
I had no other choice than create AUTOSYS program in Visual Basic which reads first two bytes of file and after start uses KEYBUF to execute it.
Please think about than again mark it as invalid!
Miro
I agree with Miro. Look at what the monitor's LOAD command does: It reads a file's load address. If the first byte is $01, then the monitor sets BASIC's pointers; if it isn't, then the monitor doesn't set them.
-autoload
and-autostart
can do something similar:1. If the file's load address is $xx01, and autoload is injecting, then set BASIC's pointers; otherwise, don't set them.
2. If the file's load address is $xx01, then
-autostart
should feed "run
" to the keybuffer; otherwise, it should feed a "sys
" statement.thats actually quite terrible, not what an ml monitor should do in any case, and should get removed ASAP.
Last edit: gpz 2015-11-12