Menu
JAQForum Ver 26.09

Forum Index : Microcontroller and PC projects : Musings about Predefined Read Only Variable - MM.xxx

Posted: 04:48pm
17 Nov 2026
Copy link to clipboard
vegipete
Guru


As the various *Mite firmwares grow and expand, new PROVs (Predefined Read Only Variables) sometimes appear. Some are of the form MM.VERS, for example, and others are of the form MM.INFO(LCD320), again, for example.

The issue I see is software meant for newer firmware running on older firmware, or mismatched hardware. The function style of PROV, MM.INFO(???), returns an error for unrecognized variables, which can be handled by a running program, using our dear friend ONERR. But the simple PROV type returns a valid value no matter what. For example, Print MM.GOT16MEG gives 0, even though the request is meaningless.

Could MM. be defined as a reserved word, and any undefined MM.<arg> would return a specific value that is recognized as invalid? I don't know what value is a good indicator of invalid, but it ought to be stored in MM.INVALID, or possibly even MM.NAN (Not A Number.)

Yes, I know the manual has the example
If MM.VER < 6.0002 Then Error "Needs version 6.00.02 or greater"
but that only covers version issues.

It might be neat too if there were a way to list available PROVs, much like List Commands, List Functions or Option List, especially if these lists could be captured by a running program.
Edited 2026-11-18 02:49 by vegipete
Visit Vegipete's *Mite Library for cool programs.
 
Posted: 12:21pm
18 Nov 2026
Copy link to clipboard
Volhout
Guru


Hi Pete,

As a non-english speaker, I was intrigued by the word "musings". Love it.

I have "musings" about nostalgia and retro computing, the time when a computer had 50 basic commands, and playing with it for a week teaches you all there was to learn.

Life was so simple then.

MMbasic has grown far beyond this simplicity. 1 main user manual, 20 additional manuals .... so much to learn.
It is so capable, and now with PC3 and CMM2 G3 it is growing to a low end PC. Forth, Fuzix, Doom, Compile, WIFI, BTLE ... there seems no limit to what it can do.

I'll be "musing" for a little longer ....

Volhout
Edited 2026-11-18 22:22 by Volhout
 
Posted: 03:23pm
18 Nov 2026
Copy link to clipboard
PhenixRising
Guru

  Volhout said  Hi Pete,

As a non-english speaker


Seriously? I have always been impressed with the quality/structure of your posts. I figured that you were fluent in English.

Actually, though, I have picked-up on one repeated mistake: You use "of coarse" where it should be "of course" so 9.9/10  
 
Posted: 04:10pm
18 Nov 2026
Copy link to clipboard
Mixtel90
Guru


I'm fluent in Double Dutch*....







*
Cambridge Dictionary:
UK informal
talk or writing that is nonsense or that you cannot understand
 


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

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