parts-man73
New Member
You'll have to excuse my "newness" I recently decided to try PICs and teach myself assembly language. I'm not new to microcontrollers in general. I am very active on other forums dedicated to different Microcontrollers. I realize there are "New" people joining forums every day, and they often ask the same "new guy" questions, and sometimes the veteran forum members get tired of answering the same FAQs over and over. If this is such a question, I apologize in advance.
I have never have done assembly. I chose a PIC16F628A to start on. and I'm using MPLAB to build HEX files from my assembly code. One error I continuously get is...
"Register in operand not in bank 0. Ensure that bank bits are correct."
when I use the following code
when searching for the cause of this error, I stumbled upon this line in many example code samples...
I never see an explaination as to why this line is included.
So is this a "bug" in MPlab, and there's nothing wrong with my code? or am I doing something wrong that needs to be corrected?
Thank you in advance,
Brian
I have never have done assembly. I chose a PIC16F628A to start on. and I'm using MPLAB to build HEX files from my assembly code. One error I continuously get is...
"Register in operand not in bank 0. Ensure that bank bits are correct."
when I use the following code
bsf 03h,5
movlw 00h
movwf 86h
bcf 03h,5
when searching for the cause of this error, I stumbled upon this line in many example code samples...
ERRORLEVEL 0, -302 ;suppress bank selection messages
I never see an explaination as to why this line is included.
So is this a "bug" in MPlab, and there's nothing wrong with my code? or am I doing something wrong that needs to be corrected?
Thank you in advance,
Brian