[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Applesoft BASIC
"Martin Doherty" <martin.doherty@undisclosed.com> wrote in message
news:3IFkg.66$bP6.106@news.oracle.com...
> Bryan Parkoff wrote:
>
>>"Mark Percival" <mark@syndicomm.com> wrote in message
>>>Bryan Parkoff wrote:
>>>
>>>>Hello,
>>>>
>>>> Is there a way that BASIC program starts at $800 can be relocated to
>>>>$4000? I can't remember the command LOMEM and HIMEM.
>>>>
>>>Try this.
>>>
>>>]POKE 103,0 : POKE 104,64
>>>]RUN (Program name here)
>>>
>>>You have to load the program after the two pokes.
>>>
>>>-- Mark
>>>
>>Mark,
>>
>> Nice Try!! Unfortunately, it does not work. I did set $00 on $67 and
>> $40 on $68 using POKE from Applesoft BASIC prompt. Then, I start to
>> type, "10 PRINT "BRYAN" and hit RETURN key. It locked up and garbage
>> characters appears in the screen. I had to do warm reboot.
>>
>>Bryan Parkoff
> Bryan,
>
> What you did is not what Mark suggested you do. He used the RUN command,
> while you started typing in a new program - not the same thing. Does
> Mark's approach work when you run a BASIC program from disk?
>
> -Martin
Martin,
Yes, I did save a program at $800 to disk and then I relocated it to
$4000 and RUN it from disk. It works. I have no idea why LOMEM: does not
work, but POKE is required.
I wish that one large BASIC code can be continuous from $800 through
$1FFF and from $4000 through $9BFF, but it is impossible to break code into
two segments so starting at $4000 is only the option.
I notice what I read documents on the Google search. It says to use $69
and $6A. I don't know what this is for, but Mark recommends to use $67 and
$68.
Bryan Parkoff