CALLS TO ASM always set bank 0
pbp has a macro you can use "chk?rp sfr" it will ckeck that the appropriate bank is set (see status or bank sfr)
the mpasm assembler can also do a " BANKSEL SFR"
BEFORE YOU RETURN T0 PBP YOU MUST SET BANK BACK TO BANK 0
Bookmarks