[net.micro.apple] MEMORY MOVE ABOVE HGR2

vfoster@uok.UUCP (01/15/86)

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"

moore@nlm-vax.UUCP (01/23/86)

> 
> 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"

Beagle Bros., Inc. has a multi-utility disk called SILICON SALAD. 
on this diskette is a program called 'program splitter'. i believe this
program will solve your problems...Beagle Bros. is located in San Diego, CA
and their number is 619-296-6400, but I'm sure a local computer store could
get it for you.

notes@isucs1.UUCP (02/06/86)

/***** 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
			/