Saving RAM Memory

Authors

Publication

Pub Details

Date

Pages

See all articles from The Plotter v4 n1

Have you ever written a BASIC program and have used up al! of the available memory and are still not finished? This happened to me a while back. I wrote a Macintosh type display program on Weld Design only to find about three fourths of the way through that I had only 320 bytes left. I would edit a try to reinsert it back into the line and program the computer would delete the line completely.

After going back and rewriting the program to pick up memory gaining some I still could not finish the program. A friend of mine clued me some memory saving techniques that he had received from another program. The techniques are as follows:

Normal UsageMemory SaverBytes Saved
1SGN PI5
0NOT PI5
3INT PI5
2, 4 on upVAL “n”3

In the last example 2, 4 on up means to use any integer 2 or 4 on up. When I used these memory savers in my Weld Design program I found that I had freed up in excess of 12,000 bytes.

Products

 

Media

 

Image Gallery

Source Code

Scroll to Top