thanks guys , i have reused the variables where they are not used outside the routines called , but now i have variables that must be used global , still searching/ change / clean , but managed to have 1 byte spare now in 128bytes of ram for variables and it compiles
but it be nice to see a few methods listed of how to " trim " code when forced to make it leaner on at least ram , find that the 2k program mem is a factor but often i hit the lack of ram factor before program mem issues on the smaller pics
for example as ACE indicated , use if - then instead of case - why , is it that it tend to use less ram , or better for program space or both ?
defining variables correctly / reusing is always good
cheers
sheldon
Bookmarks