Menu | JAQForum Ver 19.10.27 |
Forum Index : Microcontroller and PC projects : CMM2: Does it have MM.STARTUP ?
Hi Peter ... or anyone else who has successfully used it. Does the Colour Maximite 2 have MM.STARTUP support (as per the PicoMite ?) It's not mentioned in the manual, but there is at least some vestigial support in the source code. Best wishes, Tom |
||||||
If I had one I would test it with this:- Sub MM.STARTUP Print "Hello from MM.STARTUP" End Sub |
||||||
If mine weren't currently in the back of a drawer so would I. :) I haven't got the current firmware on either so it might take me some time to sort them out. You could set it to use OPTION RAM then it will look for AUTORUN.BAS on boot rather than booting a program in flash. Edited 2025-06-14 23:40 by Mixtel90 |
||||||
Oh, thanks for the reminder ![]() I have just acquired a PS/2 keyboard but I couldn't remember why I wanted one ![]() Maybe I can finally test my CMM2 |
||||||
Yes, I was being lazy and trying to get one of you to do the work ![]() Upon experimentation I think that whilst undocumented MM.STARTUP is implemented (provided you have the default OPTION FLASH not OPTION RAM) and on startup the CMM2 will first run the MM.STARTUP subroutine of the program currently in flash and will then run any of its other content - I believe this is what the PicoMite does to - though [BUG] it appears that the CMM2 is also incorrectly pre-populating the prompt line with the contents of the last line of the program currently in flash. With OPTION RAM set the program named "autorun.bas" is executed and any subroutine called MM.STARTUP that it contains receives no special treatment. However it also appears that attempting to use an "EXECUTE RUN" construct from within a startup program causes the CMM2 to hang: > option list CURRENT VGA mode 800x600 RGB332 CURRENT DISPLAY 50,100 OPTION AUTORUN ON OPTION USBKEYBOARD UK > list "autorun.bas" ? "In autorun.bas" RUN "foo.bas" > list "foo.bas" ? "In foo.bas" End > list ? "In autorun.bas" RUN "foo.bas" <<Reset the CMM2>> > In autorun.bas In foo.bas > But if you change "autorun.bas" to: > list "autorun.bas" ? "In autorun.bas" Execute "Run " + Chr$(34) + "foo.bas" + Chr$(34) And reset the CMM2 then the output is: > In autorun.bas <<HANGS!!!>> You might argue that "If it hangs then just use RUN without EXECUTE", but that isn't necessarily possible c.f. configuring "The Welcome Tape" to startup (you can use RUN to call "welcome.bas" but then that needs to use "EXECUTE RUN" to launch the actual menu) (see https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=16474&LastEntry=Y#240801#240801). Any chance of you investigating Peter ? Best wishes, Tom Edited 2025-06-16 22:42 by thwill |
||||||
![]() |
The Back Shed's forum code is written, and hosted, in Australia. |