I have enough memory for program (512 bytes) but not for data (23 bytes). What I was just thinking of, was to use generic VAR's instead of specific ones, on the theory that if a VAR was used in only a segment of the program, that I might borrow the space and reuse it later in the same progam. Sort of like this example where instead of using a "basket for apples" and a "basket for oranges" I use basket#1 over and over:
start:
Get number of apples
put in basket#1
Divide by number of children and distribute
.
.
.
(Sometime later if I'm really done with the apples)
Get number of oranges
put in basket#1
Divide by number of children and distribute
clear basket#1 (optional)
goto start
My software friend almost fainted at the prospect but in a pinch, it could save me from running out of data memory and thus save the SOT23-6 from becoming an SOIC-8, right?
Bookmarks