Newsgroups: comp.sys.apple2 Path: news.weeg.uiowa.edu!news.uiowa.edu!hobbes.physics.uiowa.edu!news.iastate.edu!destroyer!gatech!emory!swrinde!sdd.hp.com!spool.mu.edu!sgiblab!munnari.oz.au!metro!seagoon.newcastle.edu.au!scorch!lgarde From: lgarde@scorch.apana.org.au (Leon Garde) Subject: Re: where to find the applesoft start of program pointer Organization: Craggenmoore public Unix system , Newcastle , Oz Date: Thu, 18 Feb 1993 15:00:35 GMT Message-ID: <1993Feb18.150035.14988@scorch.apana.org.au> References: <9302140734.AA28953@apple.com> Lines: 43 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. Its not set for basic files is it ? if you set $67 (low) $68 (high) (ie normal pointer at $67) then it will load at the point reffered to $69 the start of the variable space, as set by lomem: $6b pointer to array memory space $6d a pointer to end of variable space, this grows up. $6f a pointer to start of string space. string space goes to memsiz -1. this pointer grows down, down from the end of memory, as set by memsiz, $73 . $73 pointer is memsiz = end of string space + 1 byte $73 is set by himem: $af = end of applesoft program. to load an applesoft at the right address set the pointer, at $67 to that address. if the program must relocate itself, fine set the pointer, then reload it ie if pointer != rightaddress then reset pointer: ?"ctnrl-d run programn" source : inside the apple //c. leon