Martin, Even if your code is completely correct, this warning will still be present at every point in the code where you use a register which isn't in bank 0. If you want pristine code, you should carefully check each of these messages to make sure you have the correct bank selected before using the registers, and once you are completely sure of this, disable the warning altogether using the directive ERRORLEVEL -302 I think that's the best that can be done. Andy -----Original Message----- From: Martin McCormick [mailto:martin@DC.CIS.OKSTATE.EDU] Sent: 01 December 1999 12:06 To: PICLIST@MITVMA.MIT.EDU Subject: Re: Bank Usage message from mpasm "Paul B. Webster VK2BZC" writes: >>> BCF STATUS, RP0 ; > > Is there some code between this and the following? Otherwise it is >redundant. It should appear *after* the setting of TRISB. > >>>; 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. No. That is how I have it in the original source code and it seemed a bit strange to me. This is the first PIC code I have actually written even though I have been on this list for about 5 years. I have written assembly code for other processors, so this experience is like having a chat with someone from another English-speaking country. It's all familiar, but the differences can throw one for a loop, sometimes. Warnings are usually there for a purpose even though they may not immediately shut down what one is doing, so I figured I had better find out what sort of trouble I was starting. Sorry about reviving one of those cyclic topics again. Martin McCormick WB5AGZ Stillwater, OK OSU Center for Computing and Information Services Data Communications Group