[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: where to find the applesoft start of program pointer
In article <9302140734.AA28953@apple.com> ST2975@SIUCVMB.SIU.EDU writes:
>I think one place is in the auxilliary filetype of the applesoft
>basic file. I'm not sure if basic.system handles it automatically
>though.
The start of Applesoft Program Pointer is located on Zero Page in Addresses
103 (low byte) and 104 (high byte). Normal values are 103:1 and 104:8. If
you want to re-set these values, you must also put a 0 in the location before
the location where the pointers point to. Then you must re-run or load the
program. Here is an example to set the Start of Applesoft to location 16385.
10 IF PEEK(103)<>1 and PEEK(104)<> 64 THEN POKE 16384,0:POKE 103,1:POKE 104,64
PRINT CHR$(4)"-PROGRAM"
This will make sure that the program gets run in memory where you want it to.
Eric
--
------------------------------------------------------------------------------
J. Eric Bush
Internet: jbush@magnus.acs.ohio-state.edu