LOAD from within a program

Post Reply
jdfan1000
Posts: 91
Joined: Tue Aug 02, 2016 8:06 pm
Location: Buffalo, NY
Contact:

LOAD from within a program

Post 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
Attachments
load-chain-files.zip
(1.72 KiB) Downloaded 365 times
My archive.org collection, containing many Timex/Sinclair related publications.

TimexSinclair.com, my website about Sinclair computers in the US.
User avatar
XavSnap
Posts: 2193
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.
Contact:

Re: LOAD from within a program

Post 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.
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
jdfan1000
Posts: 91
Joined: Tue Aug 02, 2016 8:06 pm
Location: Buffalo, NY
Contact:

Re: LOAD from within a program

Post by jdfan1000 »

Thank you, Xavier!
My archive.org collection, containing many Timex/Sinclair related publications.

TimexSinclair.com, my website about Sinclair computers in the US.
Post Reply