Re: Weird BASIC problem

From: ruud_at_baltissen.org
Date: Thu, 04 Jun 2026 11:08:21 +0200
Message-ID: <bff64fb7c3ec6fffa018138771ac27b0_at_baltissen.org>
Hallo Spiro,


> Does the problem occur with your own Kernal, or with original ROMs?

I'm sorry if I was not clear. The programs run with the original Kernal 
under VICE.

In the ZIP you will find BOOT1.prg and BOOT2.prg. Compare these two 
programs and you'll find only one difference. BOOT1 is the program that 
runs fine, just load it, list it and run it. BOOT2 is the program where 
the first zero of the three at the end of the first line has been 
replaced with a colon, the difference mentioned before. If you list this 
program, you'll see that colon immediately behind the 2062. Plus some 
nonsense on the next lines. Running BOOT2 results into a crash.

Now the, IMHO, weird part. Load BOOT1 again and POKE2059,58. This 
replaces the first zero with the colon. Type LIST and see what happens: 
the SYS 2062 appears but also with the colon at the end. But not with 
the nonsense. And, most important, it still runs!

If you load BOOT2, the same program as BOOT1 but with the colon already 
included, you can LIST it but it won't run. Now POKE2059,0 , LIST it and 
the first line will appear without the colon. But the nonsense will 
still show up.

The behavior mentioned above most probably is caused by not setting 
certain BASIC pointers at the right time.

But what I don't understand at all is that when I load BOOT2, I at least 
should be able to start the ML part of the program using SYS 2062. I 
only can guess that something has been overwritten but by what and 
where?

Thank you for any help!


-- 

Kind regards / Met vriendelijke groet, Ruud Baltissen

www.Baltissen.org


Received on 2026-06-04 11:00:02

Archive generated by hypermail 2.4.0.