>Hi, can anyone on the list give a newcomer to PIC programming (though not
>to assembley programming) some help, tell me what I am doing wrong on the
>following piece of code?
>
>I am using MPASMWIN v02.01 and PICPROG 1.2b (by Bryan Rentoul-
>
http://www.igrin.co.nz/~bryanh/picprog/picprog12b.zip ) and the piece of
>code comes from an LCD demo programme by Peter Ouwehand. It's set for a
>16c84. I can't work out why I am getting the error messages, as far as I
>can see the code should work (aren't they famous last words...); originally
>it had 0xf8 for the operand in line 101 but I changed that so it would not
>try and set the unused high bits- it didn't change the errors at all. The
>include file sets (amongst many other things)
>
>STATUS EQU H'0003'
>
>The hex file also causes an error with PICPROG when I try to load it, it
>says
>
>"Address larger than rom encountered"
>
>and aborts the load. I can load other .hex files with no problems so
>whatever is causing it appears to be in this particular .hex file.
>
>Many thanks for any help and/or advice you can give me, Ken.
>
>----------------------------------------------------------------------------
>------------------------------
>0009 0185 00097 CLRF PORTA ; ALL
>PORT output should output Low.
>000A 0186 00098 CLRF PORTB
> 00099
>000B 1683 00100 BSF STATUS, RP0 ; Select
>bank 1
>000C 3018 00101 MOVLW 0x18 ; RA2-0
>outputs, RA4-3 inputs
>Message[302]: Register in operand not in bank 0. Ensure that bank bits are
>correct.
>000D 0085 00102 MOVWF TRISA
> MPASM 02.01 Released LCD.ASM 4-17-1998 2:59:35
>PAGE 3
>
>
>LOC OBJECT CODE LINE SOURCE TEXT
> VALUE
>
>000E 3000 00103 MOVLW 0x00 ; RB7-0
>outputs
>Message[302]: Register in operand not in bank 0. Ensure that bank bits are
>correct.
>000F 0086 00104 MOVWF TRISB
>Message[302]: Register in operand not in bank 0. Ensure that bank bits are
>correct.
>0010 1781 00105 BSF OPTION_REG, NOT_RBPU
> 00106 ; Disable
>PORTB pull-ups
> 00107
>0011 1283 00108 BCF STATUS, RP0 ; Select
>bank 0
> 00109
>0012 2040 00110 CALL LCDINIT ;
>Initialize LCDisplay
>----------------------------------------------------------------------------
>-----------------------------
>
>These are not error messages, but warnings, in this case as you have set