PicoMite RP2040: V6.00.00 betas


Author Message
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5857
Posted: 06:18am 26 Sep 2024      

@Peter,

I am looking into a way to support the build in EDIT function in javavi's filemanager.
Let me explain.

The filemanager is running in a flash slot. It is coded in MMBasic.
I understand very well that LOAD "fn" and EDIT "fn" cannot be executed inside a MMBasic program since they essentially destroy the current program when in program memory.
RUN "fn" works, but it is basically a form of a cold reboot, re-initializing everything.

Questions:
LOAD "fn" should technically be no problem when executed from a flash slot. Since it loads the program in main program memory.

When running in a flash slot, why would EDIT "fn" be a problem. I understand you have to exit the flash slot program, since variable memory is freed up for the editor. So it would be similar to RUN "fn".

When looking at MM.CMDLIN$, I wondered why RUN "fn",chr$(3) would not work. I expected the program to run, and immediately stop with control C. Maybe I misunderstood the function of the option.


Long story short.. have not found a solution yet. Maybe I can find something by using a CSUB. Have to start studying...

Volhout
Edited 2024-09-26 16:21 by Volhout