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 Usage | Memory Saver | Bytes Saved |
|---|---|---|
| 1 | SGN PI | 5 |
| 0 | NOT PI | 5 |
| 3 | INT PI | 5 |
| 2, 4 on up | VAL “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.