I agree the OP could remove the directives (UDATA_SHR) that uses shared memory and replace them with UDATA and then add many banksel directives [before the variables are used]. Since the program used Shared Memory so much, I would guess it did not use banksel or bank0/1 Macros. But, It does use Bank0/1 Macro I found out searching the files.... Instead of using the the bank0 and bank1 macros. It is better to use the banksel directive in MPLAB ASM. ...
When, I was a Student (I did not know about banksel) I wrote my own inc file with improved BANK0 and BANK1 macros. I think my solution is better than using banksel; but, it requires customizing the inc file. Edit: I was able to compile with out warning (and I did not use errorlevel -302). This is just not worth the effort; except in a few cases.
Edit: The program defines Bank0 and Bank1 Macros; and it seems to use them; used AstroGrep to search the folders.
Tim S.
Last edited: