Searching \ for 'help needed with mpasmwin errors' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/language/index.htm?key=asm
Search entire site for: 'help needed with mpasmwin errors'.

Truncated match.
PICList Thread
'help needed with mpasmwin errors'
1998\04\16@202746 by Ken Johnson

flavicon
face
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
----------------------------------------------------------------------------
-----------------------------

1998\04\16@205718 by Dennis Plunkett

flavicon
face
At 10:14 AM 17/04/98 +1000, you wrote:
{Quote hidden}

the RP0 bit there is no problem. I don't think that this warning can be
turned off. Also the waning message is for the:-

       MOVWF   TRISB

In line 102, 104 and 105. As for the HEX file error, a complete listing may
be required.

-=====================================================================-

Dennis Plunkett: Embedded Hardware, Software design
NEC Australia DRMASS
Line Interface cards
TRX software
ISDN interface card
ph 03 9264-3867

-=====================================================================-

1998\04\16@205742 by TONY NIXON 54964

flavicon
picon face
>Message[302]: Register in operand not in bank 0.  Ensure that bank
>bits are correct.

This message is meant to warn you to set the RAM Page select bits for
the RAM address you have specified in your instruction. If you have
done this correctly, ignore the message.

Disable it with

errorlevel  -(302)

I don't know why the 'address larger' problem happens. It usually
means that you have assembled with the wrong processor, and the
compiler is trying to write to a ROM location that doesn't exist.

Tony


PicNPoke Multimedia 16F84 Beginners PIC Tools.

**PLUS** - PicNPlay - PicNPlan - PicNPrep - PicNPost
PicNPort - DT Type Saver - *new* PicNQuiz.
Recent addition - DogBoneZ Component.

http://www.dontronics.com/picnpoke.html

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...