Posted Mon Mar 3, 2008 10:52 AM
You can use some of the temp variables. I think it's temp2,3,4, if you are not scrolling.
How are you using the standard 26?
Are some of them holding smaller values?
If so, you can pack things in to get better use of the standard ones.
One real savings is true / false variables. So you use a whole 8 bit variable to indicate something is either gonna happen or not. Well, that can be done with just one bit of that variable, turning it into 8 true / false variables. Go and look through the manual for the bit operators. You can test, set and reset individual bits.
Another pretty good savings is breaking a variable into two. So, you've got some values that range from 0 to 15. That's 4 bits. You can pack two of those values into one 8 bit variable as well.
Finally, go through and look hard at your variable usage. Are there things that you could double up on, such as counters?
Maybe one variable would actually work, if you change the logic a bit.