Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:48 18 Jun 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: Does it have MM.STARTUP ?

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4287
Posted: 12:11pm 14 Jun 2025
Copy link to clipboard 
Print this post

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
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2556
Posted: 12:17pm 14 Jun 2025
Copy link to clipboard 
Print this post

If I had one I would test it with this:-
Sub MM.STARTUP
  Print "Hello from MM.STARTUP"
End Sub
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7780
Posted: 01:37pm 14 Jun 2025
Copy link to clipboard 
Print this post

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
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1301
Posted: 02:36pm 14 Jun 2025
Copy link to clipboard 
Print this post

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
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4287
Posted: 12:41pm 16 Jun 2025
Copy link to clipboard 
Print this post

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
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025