File Manager for PicoMite


Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4365
Posted: 06:39pm 22 Nov 2024      

Just spit-balling, but you make the behaviour caller defined and transient:

The "shell" calls:

   RUN "app.bas" [, args$] [ ON END RUN n | filename$ ]

And when "app.bas" ends it will then RUN flash slot 'n' or 'filename$'.

You could get additionally tricksy by:

1. Having a variable Mm.EndCmdLine$ or suchlike, the value of which would then be passed as the command line args when processing the ON END RUN.

2. Also having an optional ON ERROR RUN which would automatically receive the error number and message as its command line args.

HOWEVER ... I'm not convinced we are addressing @javavi's use-case. @javavi could you provide an explicit example of something you want to do rather than describing it in generalities ?

Best wishes,

Tom
Edited 2024-11-23 04:50 by thwill