Page 1 of 1

LOAD from within a program

Posted: Sun May 12, 2024 4:02 pm
by jdfan1000
Hi!

I'm trying to understand why LOAD from within a program works in one instance but not another.

Attached are two TAP files. Each does the same thing: attempts to load the next program from "tape".

When the 2nd program has been saved with an auto start (SAVE "progname" LINE X), the LOAD works.

When the 2nd program has just been saved (SAVE "progname"), BASIC returns a "Nonsense in BASIC" error message.

Perhaps I'm just overthinking this and "Nonsense in BASIC" is returned in both cases but only visible in the 2nd?

Thanks!
David

Re: LOAD from within a program

Posted: Sun May 12, 2024 6:47 pm
by XavSnap
Hi David,

It"s a Funny Spectrum's ROM bug ! :oops:
The BASIC steel to execute the old program, and can't retrieve the end of the "LOAD" line.

If you add "40 REM" in the "Prog2", the syntax error don't occur.

I remember some specials chars like LOAD"!"... but the program can't be named in the LOAD command.

Re: LOAD from within a program

Posted: Tue May 14, 2024 6:22 pm
by jdfan1000
Thank you, Xavier!