When I compile it works but trying to build using MPLAB I get a masive amount of errors
Are you compiling from MCS, then importing the .asm file into MPLAB, and trying to
build it?