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

Re: How to make an Applesoft Basic program Brun-able



On Thu, 19 Jul 2012, bpiltz@gmail.com wrote:

I've searched to no avail, and am wondering if anyone can tell me a nifty way or provide the code to append to an Applesoft file to make it a self-executable BINary file. I remember reading that there is a way, but after 20+ years have forgotten that magical code. The reason is that I want to make self-contained Basic files which will execute from Beautiful Boot, and other similar binary-loading programs. I know location $801 has be modified, and probably location 64 also, but how to sandwitch the machine language code together with the tokenized Applesoft code?

I'm NOT talking about an Applesoft compiler!

You'll need to set the beginning-of-program, end-of-program and LOMEM manually, then call the RUN function. I'd have to look up the specific addresses.

I would put the function to do so immediately after the code, with a JMP to it at $07FD.

-uso.