Searching \ for 'WARNING MESSAGE' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=warning+message
Search entire site for: 'WARNING MESSAGE'.

Truncated match.
PICList Thread
'WARNING MESSAGE'
1998\04\08@015105 by Leonardo De Palo

flavicon
face
part 0 800 bytes content-type:application/octet-stream; (decoded 7bit)

during  the compilation I obtain a warnin message. I know it is only a
warning but i prefer to avoid.
I have written the routine for bank switching as is written on the manual.
Someone can know the way to solve this strange problem.

Attached please find the source and the error file.

Thanks

Ciao

Leonardo

Content-Type: application/octet-stream;
       name="Ledn.err"
Content-Disposition: attachment;
       filename="Ledn.err"

Attachment converted: wonderland:Ledn.err (????/----) (00003182)
Content-Type: application/octet-stream;
       name="Ledn.asm"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
       filename="Ledn.asm"

Attachment converted: wonderland:Ledn.asm (????/----) (00003183)

1998\04\08@025421 by TONY NIXON 54964

flavicon
picon face
The message is to remind you that you need to specify the correct RAM
page bit in the Status register (rp0) when addressing RAM locations.

You can stop the compiler issuing these errors by placing this in the
source code,

errorlevel -302

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

1998\04\08@043253 by Michael Hagberg

flavicon
face
to get rid of these messages without disabling all warnings i refer to
address in bank one as follows

by anding the address value with 0x7F the address will be in the movwf range
and no message will appear.

another way is to modify the .inc files and change the bank one address by
subtracting 0x80 from them. this method is NOT recommended because you would
have to modify the .inc files everytime you got an update and you would be
creating code that is not machine independent. if microchip where to modify
the files i'm sure nobody would complain and the bank one address warning
messages would go away for all of us.

 movwf   0x17                      ; 9600 baud
 movwf   SPBRG & 0x7F
 movlw   0xA0
 movwf   TXSTA & 0x7F
 movlw   0x05                    ; 2 analog, vref=AN3

michael

{Original Message removed}

1998\04\08@161720 by Mike Keitz

picon face
On Wed, 8 Apr 1998 03:36:21 -0500 Michael Hagberg
<spam_OUTmhagbergTakeThisOuTspamSIGNALHILL.NET> writes:
>to get rid of these messages without disabling all warnings i refer to
>address in bank one as follows
>
>by anding the address value with 0x7F the address will be in the movwf
>range
>and no message will appear.

This works, it is a little better to xor the address with 0x80 instead.
Then if you get confused and think an address is in page 1 when it is
actually in page 0, the xor will set the high bit and the assembler will
warn you.
>
>another way is to modify the .inc files and change the bank one
>address by
>subtracting 0x80 from them.

An absolutely terrible idea.  First, by using xors having the eight bit
in the constant allows checking if the page is correct.  Also, since it
is sometimes practical to use indirect access rather than changing the
bank select bits, the address in the include file needs to be complete.

For example, if you use the code
       movlw   TRISA           ;Address of the port A
tri-state register
       movwf   FSR             ;can be reached indirectly
       movlw   _trisa          ;Constant for the setting of
tris register
       movwf   INDF            ;set it.

it will not work if the address in the include file doesn't have the
eight bit of the address.

If you don't want to see the warning message, set the errorlevel so it is
not printed:

errorlevel -302


_____________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com
Or call Juno at (800) 654-JUNO [654-5866]

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