Renzo Giurini wrote:
> I try to compile the following lines,part of a program for Pic16f84a,
> and I
> get in line <2> the
> "Message[302] : Register in operand not in bank 0. Ensure that bank bits
> are correct".
Perfectly correct!
Your setting RP0 does NOT tell the assembler you selected bank 1.
>
>
> and in line <5> a "Warning[202] : Argument out of range. Least
> significant bits used".
Again correct!
the form is B'01010101'
Putting a B at the end signals HEX characters
{Quote hidden}>
> I think that instructions are correct. Why those messages?
>
> 1 bsf STATUS,RP0 ;select memory register page 1
> 2 clrf TRISB ;make Port B output by
> clearing TRISB
> 3 bcf STATUS,RP0 ;go back to register page 0
>
> Main
> 4 ;movlw 01010101B ;move 01010101 into W and
> 5 ;movwf PORTB ;output patter
>
> Thanks
> Renzo Giurini
>
> --
>
http://www.piclist.com hint: The PICList is archived three different
> ways. See
http://www.piclist.com/#archives for details.
>
>
>
--
*
| __O Thomas C. Sefranek spam_OUTtcsTakeThisOuT
cmcorp.com
|_-\<,_ Amateur Radio Operator: WA1RHP
(*)/ (*) Bicycle mobile on 145.41, 448.625 MHz
ARRL Instructor, Technical Specialist, VE Contact.
hamradio.cmcorp.com/inventory/Inventory.html
http://www.harvardrepeater.org
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.