LOAD without auto-running - ZXpand+ *update* also ZXpand classic
LOAD without auto-running - ZXpand+ *update* also ZXpand classic
I've added a new feature to the LOAD command. By inserting the keyword STOP after the filename the program will be prevented from auto-running.
LOAD "filename STOP "
will load the named program and return to the 0/0 prompt.
It works with LOAD "$" too
Visit the announcements topic for the latest firmware update. You'll be wanting 1.07.
C
*UPDATE* - also now available for ZXpand classic in V2.61 "TROLL". See announcements topic.
LOAD "filename STOP "
will load the named program and return to the 0/0 prompt.
It works with LOAD "$" too
Visit the announcements topic for the latest firmware update. You'll be wanting 1.07.
C
*UPDATE* - also now available for ZXpand classic in V2.61 "TROLL". See announcements topic.
Re: LOAD without auto-running - ZXpand+
Nice one Mr C this is a welcome feature for sure.
Whilst your programming skill is unsurpassed i think you might need a little help with the counting,....
you seem to have missed 1.02, 1.03, 1.04, 1.05 and 1.06
Whilst your programming skill is unsurpassed i think you might need a little help with the counting,....
you seem to have missed 1.02, 1.03, 1.04, 1.05 and 1.06
what's that Smell.... smells like fresh flux and solder fumes...
Re: LOAD without auto-running - ZXpand+
I may be rubbish at counting but I can't half lift things!
Re: LOAD without auto-running - ZXpand+
No he didn't miss them, I got stuck with them and as for programming skill learning the full MIDI spec in two hours then producing a working player in under a week is kids stuff.
Moggy hides.
Re: LOAD without auto-running - ZXpand+
Good idea, is the opposite handled to like
LOAD "filename RUN" for starting a program with no autostart ?
LOAD "filename RUN" for starting a program with no autostart ?
Re: LOAD without auto-running - ZXpand+
Haha yes I did consider this! It would have to be started from the first line of the program but I think that would be fine as that's pretty much what you do after loading, isn't it.
LOAD ".."
...
RUN
LOAD ".."
...
RUN
Re: LOAD without auto-running - ZXpand+
erm i would do a GOTO first line... some programs have variables setup already and a RUN destroys them
regards
regards
what's that Smell.... smells like fresh flux and solder fumes...
Re: LOAD without auto-running - ZXpand+
The behaviour is controlled by the NEXTLN sysvar. Setting it to point to DFILE will stop auto-run, pointing it at the start of a line of BASIC will continue execution from there. There's neither a RUN nor a GOTO per-se so no worries about clearing vars
Thinking about it more I reached the conclusion that I will leave this for another day unless there's a big demand as it's really easy to make a program auto-run natively, it was harder to stop it however.
Thinking about it more I reached the conclusion that I will leave this for another day unless there's a big demand as it's really easy to make a program auto-run natively, it was harder to stop it however.
Re: LOAD without auto-running - ZXpand+
In my UFM (USB-Filemanger), NFM (Network-Filemanager) and ZeddyFox (Internet browser) I have the option to not-autorun a loaded P-file: I just overwrite NEXTLIN by 0. Then (before returning to BASIC) this modified program can be stored (on USB-Stick or via ZeddyNet) to have a non-autorunning program later. That avoids the problem, that variables could be lost accidentially, when SAVE has to be done manually (maybe after RUN...)sirmorris wrote: ↑Wed Jul 12, 2017 7:13 am The behaviour is controlled by the NEXTLN sysvar. Setting it to point to DFILE will stop auto-run, pointing it at the start of a line of BASIC will continue execution from there. There's neither a RUN nor a GOTO per-se so no worries about clearing vars
Thinking about it more I reached the conclusion that I will leave this for another day unless there's a big demand as it's really easy to make a program auto-run natively, it was harder to stop it however.
Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
http://zx81.ddns.net/ZxTeaM
Re: LOAD without auto-running - ZXpand+
Equivalent would be:
LOAD "filename STOP THEN SAVE newfilename"
Siggi
LOAD "filename STOP THEN SAVE newfilename"
Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
http://zx81.ddns.net/ZxTeaM