Quote Originally Posted by pedja089 View Post
If variable doesn't fit into BANKA, then MPASM show error.
Used almost in all my project, and always worked fine. Also when coding in ASM, I use SYSTEM, so there is no annoying underscore in front of variable name.
EDIT:
From manual:
BANKx Instructs PBP to locate the variable in a specific bank of RAM.
If things as address of variable, and bank of variable not guarantied if you specify them, then that is idiotic
I'm sure if you specify location and bank of variable, compiler will try to fit in that location, otherwise throw error or at last warning.
yet in 7.3
You can suggest to PBP a particular bank to place the variable in:
penny VAR WORD
BANK0
nickel VAR BYTE
BANK1
If specific bank requests are made, those are handled first. If there is not enough room in a requested bank, the first available space is used and a warning is issued.




but you get a warning