It's not an error, it's a warning. The assembler is not particularly clever and dosen't recognise that you have explicity changed banks in the previous instruction. It can be annoying, but your code should still assemble OK.
Mike Rigby-Jones
-----Original Message-----
From: Aaron [SMTP:azzi_b@AZZNET.FREESERVE.CO.UK]
Sent: Thursday, December 09, 1999 12:07 AM
To: PICLIST@MITVMA.MIT.EDU
Subject: MPLAB
I am getting errors when compiling the following
PAGE0
CLRF PORTA
CLRF PORTB
PAGE1
CLRF TRISA
MOVLW b'00001010'
MOVWF TRISA
CLRF TRISB
I am programming a 16f873 and have got the pages defined as:
#DEFINE PAGE0 BCF STATUS,RP0
#DEFINE PAGE1 BSF STATUS,RP0
when compiling i get the message
Message[302] A:\ECU.ASM 108 : Register in operand not in bank 0. Ensure
that bank bits are correct.
what am i doing wrong
aaron