You can access any variable in any bank you want. They don't need to be in BANKA.
If you put them in BANK0, it works almost identical to BANKA since you always start in BANK0 from the beginning of an ASM block.
If they are in another bank, you can use CHK?RP _VarName to find the bank any variable is in. Just be sure to put it back to BANK0 before exiting the ASM block (RST?RP).
Best bet... use BANK0 and don't use SYSTEM.
SYSTEM variables usually end up in BANKA, whether BANKA is specified or not. Then they'll push other variables out of BANKA that were specified to be there.
<br>
Bookmarks