Login
Back to forumReply to this topicGo to last reply

Posted By

Haegar
on 2025-02-18
15:25:09
 Move the start of basic

Hello, I have a small problem. I want to load a basic program to a specific memory address, for example $2000, and then start it.

10 POKE 44,40
20 DLOAD"TEST"

Basically it works, the program is in memory from $2000, when I write LIST the basic program "TEST" that was loaded is shown fine but after starting I always get a SYNTAX ERROR in some lines. If I load the program "TEST" normally, i.e. at $1000, then it runs perfectly.

Does anyone have an idea?

Posted By

gerliczer
on 2025-02-18
15:43:27
 Re: Move the start of basic

Interesting problem. Obviously, I don't know how to do it, but maybe this idea gives you the necessary push. I'd try to use KERNAL to load the BASIC program and after setting the new BASIC start address call RUN with SYS. The example how to do KERNAL loading is there somewhere in the encyclopedia.

Posted By

Ulysses777
on 2025-02-18
16:31:30
 Re: Move the start of basic

The byte in memory before the start of the BASIC area must be zero.

So, for moving BASIC to $2000 (actually $2001), you need:

POKE 44,32:POKE 46,32:POKE 8192,0:DLOAD"TEST"

Posted By

Haegar
on 2025-02-21
02:17:51
 Re: Move the start of basic

With a few small adjustments it worked, thanks for the help.



Back to topReply to this topic


Copyright © Plus/4 World Team, 2001-2025. Support Plus/4 World on Patreon