> -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Neville Paintin > Sent: Monday, January 06, 2003 5:34 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: [PIC]: Warning message in MPLAB > > > ; set bank 1 > movlw 0 > bsf STATUS, RP0 > movwf TRISB > movwf TRISA > ; set bank 0 > bcf STATUS, RP0 > > Why is it when I complie this code I get a > [302] Register in operand not in bank 0. Ensure that bank bits > are correct > > message? > > > Regards Neville... > > Because the TRIS registers are not in bank 0. (The warning does NOT go away just because YOU did the right thing.) * | __O Thomas C. Sefranek WA1RHP@ARRL.NET |_-\<,_ Amateur Radio Operator: WA1RHP (*)/ (*) Bicycle mobile on 145.41, 448.625 MHz http://hamradio.cmcorp.com/inventory/Inventory.html http://www.harvardrepeater.org -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu