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

Re: Where do I find the start-of-program pointers in Applesoft?



In article <1993Feb11.073903.8710@ucc.su.OZ.AU> andy@extro.ucc.su.OZ.AU (Andrew Miehs) writes:
>So, I'm looking for a way to change the spot in memory where Applesoft sticks
>my program. Is this possible?

Yup.  The memory is fading, but I believe the locations were 103 and 104
decimal.  I think I had to POKE the new location, then run the program again
for DOS 3.3 to set itself up again.  So try something like:

10	NA=3073 : REM Hex $C01
20	POKE 103,NA-INT(NA/256)*256 : POKE 104,INT(NA/256)
30	?CHR$(4)"RUN PROGRAM"

This probably won't work with ProDOS 8.

I believe that ProDOS had the ability to run an Applesoft program at any
address by using the A parameter, (ie: RUN PROGRAM,A$C01), so that might
be worth a try.

-- 
Dave Seah (seah@ee.rochester.edu, AFCDaveS@aol.com)
That's Rochester, New York!