Hello,
I'm having problems with understanding variables and banks, or actually how to correctly to use variables across banks (using 876A so I have 4 banks; bank0-3)
What exactly is the difference between these following lines if they are declared at the top? Does it even matter if they are declared at the top or in the middle of the code?
--------
btemp1 var byte
btemp2 var byte bank0
btemp3 var byte system
btemp4 var byte bank0 system
--------
What is the scope of each of these variables? If I have a variable that needs to retain its value across all the banks, how do I need to declare it?
I couldn't find any information about variables' scope in PBP manual. Please help.
Thank you.
Bookmarks