Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:13 02 Aug 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 : Chain equivalent for SD card

     Page 2 of 2    
Author Message
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1642
Posted: 06:30am 11 Feb 2023
Copy link to clipboard 
Print this post

It seems that the 'Library' as used in the MM2 would be handy.

Bill
Keep safe. Live long and prosper.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 07:52am 11 Feb 2023
Copy link to clipboard 
Print this post

What are you willing to sacrifice to get it, Bill? Unfortunately this version of the RP2040 isn't built on the TARDIS core. ;)

(I sometimes think Peter is working on that though... lol )
Mick

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

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1642
Posted: 08:04am 11 Feb 2023
Copy link to clipboard 
Print this post

  Quote  What are you willing to sacrifice to get it, Bill?

A Flash slot.

Bill
Keep safe. Live long and prosper.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 08:05am 11 Feb 2023
Copy link to clipboard 
Print this post

The LIBRARY command is not in any of my ports and won't be
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 08:18am 11 Feb 2023
Copy link to clipboard 
Print this post

  matherp said  The LIBRARY command is not in any of my ports and won't be


Somebody check the weather forecast .

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1642
Posted: 08:39am 11 Feb 2023
Copy link to clipboard 
Print this post

Frost.  

Bill
Keep safe. Live long and prosper.
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 09:31am 11 Feb 2023
Copy link to clipboard 
Print this post

  Mark said  Tom,
Looking at both sptrans and gonzo I see lines starting with #Include. Where is that handled? If I could get that working with PicoMite Basic, I think that would do all I need.
Mark


Hi Mark,

#INCLUDE is only available on CMM2, MMB4W and MMB4L. That is why I (and Bill) suggested that "you will need to first transpile [sptools] using itself " on one of those platforms. I will try to find time to do this myself later, but it's a while since I "fired up the Quattro" so things may not go smoothly.

Further notes:

It will probably be slow. sptools does a full tokenise and pretty-print so as to support it's other functionality, see (past its sell by date) README on GitHub. If you just wanted to inline #INCLUDEs you could write something much simpler and faster.

I think the PicoMite could have #INCLUDE but there are a number of issues that would need to be sorted out, not least of which would be the editor, which on the PM and micromite platforms is a program/flash editor rather than a file editor. A significant amount of work that I don't expect Peter to volunteer for.

Likewise I feel that file CHAIN is implementable; the tokeniser shouldn't need to use the entire variable RAM as workspace. But again, why should Peter do this ? The PicoMite firmware is up on GitHub, so people will either have to get stuck in or accept that (subject to suggestions) Peter is steering the ship.

Best wishes,

Tom
Edited 2023-02-11 19:52 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1642
Posted: 09:58am 11 Feb 2023
Copy link to clipboard 
Print this post

Sorry Tom, I missed your post re sptools. Yes, MMEdit probably is an easier option to include the files than without a CMM2. It worked OK when I tried it.

It's a pity about the Library, I'm sorry I mentioned it.

Bill
Keep safe. Live long and prosper.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 01:32pm 11 Feb 2023
Copy link to clipboard 
Print this post

  thwill said  #INCLUDE is only available on CMM2, MMB4W and MMB4L.

That's a pretty good set, though :)

With the CMM2 having so much more RAM etc than the RP2040, some stuff just can't fit :(

John
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 04:46pm 11 Feb 2023
Copy link to clipboard 
Print this post

  Turbo46 said  Sorry Tom, I missed your post re sptools. Yes, MMEdit probably is an easier option to include the files than without a CMM2. It worked OK when I tried it.


My sptrans on the PicoMite plan hit an early brick wall. I'd forgotten there was no MM.CMDLINE$ on PicoMite. I'm now building the firmware as I think I have a simple fix for this which Peter will find acceptable - wish me luck!

  Turbo46 said  It's a pity about the Library, I'm sorry I mentioned it.


Why are you sorry? No on-topic suggestion should be verboten. Even if you can't implement such suggestions yourself expressing our opinions is good for our mental health and stimulating of discussion. I am always interested in your opinion, I just may not always agree with it ... but mostly it seems I do.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Mark
Regular Member

Joined: 26/11/2022
Location: United States
Posts: 85
Posted: 05:07pm 11 Feb 2023
Copy link to clipboard 
Print this post

I was wondering about command line parameters with the PicoMite. I guess they aren’t supported. For my proposed transpire, here’s how I’m thinking about working around that. The program will look for a configuration file on the file system. If not there, it will prompt the user and create it for future runs.  There may actually be two configuration files one with system wide options, one with project specific ones.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2642
Posted: 09:03pm 11 Feb 2023
Copy link to clipboard 
Print this post

Is this of any use?

SUB MM.STARTUP
' Your configuration commands here
END SUB

Manual page 13.
'
Edited 2023-02-12 07:04 by phil99
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1642
Posted: 09:19pm 11 Feb 2023
Copy link to clipboard 
Print this post

  thwill said  wish me luck!

Good luck Tom

Bill
Keep safe. Live long and prosper.
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 10:05am 12 Feb 2023
Copy link to clipboard 
Print this post

Is it possible someone can explain to me what the begeebers chain actually is??

I remember from the BBC micro the chain command was how to load from floppy.
I just assumed it was load then run?
I'd give my left arm to be ambidextrous
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 10:58am 12 Feb 2023
Copy link to clipboard 
Print this post

Chain is the ability for one program to load and run another thereby replacing it but with variables and their values preserved
The Picomite supports this concept with the FLASH CHAIN command.
However, that doesn't meet the OP's requirement which was that subroutines were also available to both programs. This concept isn't supported in any version of MMbasic
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 12:42pm 12 Feb 2023
Copy link to clipboard 
Print this post

Thanks for that.  

I feel a little more educated.

I wish I could help more on this site, but there seems to be an abundance of professionals.


Cheers
I'd give my left arm to be ambidextrous
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 12:49pm 12 Feb 2023
Copy link to clipboard 
Print this post

  IanRogers said  I wish I could help more on this site, but there seems to be an abundance of professionals.


You help out by participating, and I can assure you that the professionals can be as wrong as anybody else.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 01:36pm 12 Feb 2023
Copy link to clipboard 
Print this post

I'm regularly wrong - and not just on this forum. Just ask my wife. lol
Mick

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

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 01:43pm 12 Feb 2023
Copy link to clipboard 
Print this post

  Mixtel90 said  I'm regularly wrong - and not just on this forum. Just ask my wife. lol


Are you professionally married or a hobbyist?



Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 02:11pm 12 Feb 2023
Copy link to clipboard 
Print this post

She assures me that it's a full-time profession. As is being wrong...
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
     Page 2 of 2    
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