>;from EXAMPLE 5-2: INITIALIZING PORTB > BCF STATUS, RP0 ; >; clearing output data latches > BSF STATUS, RP0 ; Select Bank 1 > clrw ;Set w to 0 to make all outputs. >; initialize data direction > MOVWF TRISB ;All 8 bits are now outputs. Not a problem - just a warning message that MPASM noticed that you were writing to a register with an address higher than 0x7F. The message is remind you to check that you have set the ram page bits correctly. I use macros to ensure that the message is generated only if I've been careless. I'll give a couple of them here - you can extend them to all the opcodes that you may use or email me privately and I'll send the whole lot to you. In your case above, I'd set the ram page bits, then use movwf1 TRISB No more error message. The reason for inverting the MSB in the following macros instead of just masking it is to make sure that I'm paying attention to what page I'm in - if I am in page 0 and use a page 1 macro, I get the warning message. Macros follow: rampg0 MACRO ;set RAM page 0 bcf _RP0 endm rampg1 MACRO ;set RAM page 1 bsf _RP0 endm rampg2 MACRO ;set RAM page 2 error Ram Page 2 not available on this part endm rampg3 MACRO ;set RAM page 3 error Ram Page 3 not available on this part endm bcf1 MACRO reg,bit ;diddle bits in RAM bank 1 bcf (reg^0x80),bit ;invert MSB endm bsf1 MACRO reg,bit ;diddle bits in RAM bank 1 bsf (reg^0x80),bit ;invert MSB endm movwf1 MACRO arg ;diddle regs in RAM bank 1 movwf (arg^0x80) ;invert MSB endm movfw1 MACRO arg ;diddle regs in RAM bank 1 movfw (arg^0x80) ;invert MSB endm swapf1 MACRO arg,d ;diddle regs in RAM bank 1 swapf (arg^0x80),d ;invert MSB endm andwf1 MACRO arg,d ;diddle regs in RAM bank 1 andwf (arg^0x80),d ;invert MSB endm Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 15 years of Engineering Innovation (1984 - 1999) * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Do NOT send unsolicited commercial email to this email address. My posting messages to Usenet neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email.