Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site isucs1.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!stolaf!mmm!umn-cs!isucs1!notes From: notes@isucs1.UUCP Newsgroups: net.micro.apple Subject: Re: MEMORY MOVE ABOVE HGR2-- Message-ID: <509@isucs1.UUCP> Date: Thu, 6-Feb-86 11:09:24 EST Article-I.D.: isucs1.509 Posted: Thu Feb 6 11:09:24 1986 Date-Received: Sun, 9-Feb-86 08:04:47 EST Sender: notes@isucs1.UUCP Organization: Iowa State University Lines: 43 Nf-ID: #R:uok:-450002200:isucs1:9900012:000:1353 Nf-From: isucs1!heins Jan 24 01:07:00 1986 /***** isucs1:net.micro.apple / uok!vfoster / 4:21 am Jan 23, 1986 */ >I have been having problems with a graphics program on my Apple //e >which uses a shape table. The program's length is such that it spills >into the region of memory for HGR graphics, causing lines to appear >that shouldn't be there (also erasing the last portion of the program). >The shape tables are stored in the HGR2 region of memory (which resides >just above the HGR region). How can I, through machine language, basic, >or whatever, move the starting point of the free memory above these >graphics pages. This would be a godsend in freeing up enough memory >to get my program back on it's feet. > HELP! HELP!...please. > vlf > "babyface" /* ---------- *> The bytes to change to set the memory usage for an Applesoft Basic program are $67 and $68 These normally contain $00 and $08 respectively (addr = $800) to change the start of Applesoft's free memory do this Change $67 and $68 to whatever you like (in this case $67 = 0 & $68 = $60) From BASIC this is: POKE 103,0: POKE 104,96 Add this line to the beginning of your program: 5 IF PEEK (104)<>96 THEN POKE 103,0: POKE 104,96: ?:?CHR$(4)"RUN prog" Where "prog" is the name of the program. Hope this helps. Lee Heins /