[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applesoft BASIC



Bryan Parkoff wrote:
"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.

There were numerous "program splitters" that were published in magazines
and on utility disks that precisely split large Applesoft programs to
avoid one or both hi-res graphics pages.  I'd be surprised if Google
didn't turn up a few.  (Call-A.P.P.L.E. was one of the magazines that
published a splitter IIRC.)

Now that it doesn't matter much anymore, someone should publish a
tutorial on all the ways that the memory map can be modified to
allow interesting things to be done with Applesoft.  ;-)

-michael

Parallel computing for 8-bit Apple II's!
Home page:  http://members.aol.com/MJMahon/

"The wastebasket is our most important design
tool--and it is seriously underused."