Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:49 05 Dec 2026 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 : Musings about Predefined Read Only Variable - MM.xxx

Author Message
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1207
Posted: 04:48pm 17 Nov 2026
Copy link to clipboard 
Print this post

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.
 
Volhout

Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 6336
Posted: 12:21pm 18 Nov 2026
Copy link to clipboard 
Print this post

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
PicomiteVGA PETSCII ROBOTS
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 2182
Posted: 03:23pm 18 Nov 2026
Copy link to clipboard 
Print this post

  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  
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 9431
Posted: 04:10pm 18 Nov 2026
Copy link to clipboard 
Print this post

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







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

Zilog Inside! nascom.info for Nascom & Gemini
 
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 2026