Put this line near the top of your code: errorlevel-302 Rick Jan-erik S=F6derholm (QAC) wrote: > Hi. > I'm getting "Message[302]" messages from MPLAB when asambling > the following code. I'm not sure why I get this, I can't > find any error(s). Anyone seeing anything wrong ? > This is part of the startup of a larger program, and > there is no problem with the program, it runs as intended. > Using MPLAB 5.70.00. > > Jan-Erik S=F6derholm. > > --------------------- Code starts here -------------- > list p=3D16f84a > #include > __CONFIG 0x3FF3 > org 0x00 ;Reset Vector > goto START > org 0x05 ;Start Program > START > clrf PORTB ;Clear PortB (LED's off) > bsf STATUS, RP0 ;Select Bank 1 > clrf trisb ;Set PortB as output > bsf trisa, ra0 > bsf trisa, ra1 > bcf STATUS, RP0 ;Select Bank 0 > END > --------------------- Code ends here ----------------- > > ------- Output in the error window in MPLAB ---------- > Building BANKTEST.ASM... > > Command line: "C:\PROGRAM\MPLAB\MPASMWIN.EXE /e+ /x- /c- /p16F84A /q = BANKTEST.ASM" > Message[302] C:\PROGRAM\MPLAB\BANKTEST.ASM 11 : Register in operand not= in bank 0. Ensure that bank bits are correct. > Message[302] C:\PROGRAM\MPLAB\BANKTEST.ASM 12 : Register in operand not= in bank 0. Ensure that bank bits are correct. > Message[302] C:\PROGRAM\MPLAB\BANKTEST.ASM 13 : Register in operand not= in bank 0. Ensure that bank bits are correct. > > Build completed successfully. > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body