Hi all,
When I am running my PIC code in MPLAB, I got an error and two
warnings...
I was able to eliminate all other errors except this
Error:
----------------------
In my code I wrote
CS equ 0x0
It gave me an error like this
Error[115] E:\DOCUMENTS AND SETTINGS\KVEMISHE\MY
DOCUMENTS\PIC\TIR.ASM 19 : Duplicate label ("CS" or redefining symbol that
cannot be redefined)
Warnings:
--------
Warning[202] E:\DOCUMENTS AND SETTINGS\KVEMISHE\MY DOCUMENTS\PIC\TIR.ASM 47
: Argument out of range. Least significant bits used.
Warning[205] E:\DOCUMENTS AND SETTINGS\KVEMISHE\MY DOCUMENTS\PIC\TIR.ASM
109 : Found directive in column 1. (local)
I am writing my code in assembly level.
Can anyone explain me what does these errors indicate.
Thanks,
Kalyan
|

Warning in MPLAB
Started by ●April 8, 2004
Reply by ●April 8, 20042004-04-08
these errors and warnings are pretty much self explanatory duplicate label - you declared (created) a label twice. look at line 19. You can only have one label of a given name. make it unique. argument out of range - look at line 49, one of the instruction arguments is too big. read the instruction set summary. directive in col 1 - usually not a big problem but look at it to see if its what you intended. --- In , kalyanramu vemishetty <kalyanramuv@y...> wrote: > Hi all, > > When I am running my PIC code in MPLAB, I got an error and two warnings... > > I was able to eliminate all other errors except this > > Error: > -------------------------------- -------------------------- > In my code I wrote > CS equ 0x0 > > It gave me an error like this > > Error[115] E:\DOCUMENTS AND SETTINGS\KVEMISHE\MY DOCUMENTS\PIC\TIR.ASM 19 : Duplicate label ("CS" or redefining symbol that cannot be redefined) > > Warnings: > -------------------------------- ------------ > > Warning[202] E:\DOCUMENTS AND SETTINGS\KVEMISHE\MY DOCUMENTS\PIC\TIR.ASM 47 : Argument out of range. Least significant bits used. > > Warning[205] E:\DOCUMENTS AND SETTINGS\KVEMISHE\MY DOCUMENTS\PIC\TIR.ASM 109 : Found directive in column 1. (local) > > I am writing my code in assembly level. > > Can anyone explain me what does these errors indicate. > > Thanks, > Kalyan > --------------------------------- > |
Reply by ●April 8, 20042004-04-08
I don't have MPLAB in front of me, but these are not particularly mysterious messages. I wish I had the Internet around to do my homework for me when I was in college... First, line 19 - Look in your assembler help files to make sure "CS" isn't a predefined keyword or constant... (It might be in one of the include files, too.) Otherwise you are trying to define CS twice. Second, line 47 - Without your source code it's hard to tell what's happening, but obviously the argument (data) you are supplying in the statement has more bits than will fit... Third, line 109 - "local" is an assembler directive. Nothing but labels should be in column 1 for PIC assembler. If you are trying to use "local" as a label, that's reserved, change it to something else. kalyanramu vemishetty wrote: > Hi all, > > When I am running my PIC code in MPLAB, I got an error and two warnings... > > I was able to eliminate all other errors except this > > Error: > ---------------------- > In my code I wrote > CS equ 0x0 > > It gave me an error like this > > Error[115] E:\DOCUMENTS AND SETTINGS\KVEMISHE\MY > DOCUMENTS\PIC\TIR.ASM 19 : Duplicate label ("CS" or redefining symbol > that cannot be redefined) > Warnings: > -------- > > Warning[202] E:\DOCUMENTS AND SETTINGS\KVEMISHE\MY > DOCUMENTS\PIC\TIR.ASM 47 : Argument out of range. Least significant > bits used. > Warning[205] E:\DOCUMENTS AND SETTINGS\KVEMISHE\MY > DOCUMENTS\PIC\TIR.ASM 109 : Found directive in column 1. (local) > > I am writing my code in assembly level. > > Can anyone explain me what does these errors indicate. > > Thanks, > Kalyan > > to unsubscribe, go to http://www.yahoogroups.com and follow the > instructions > > <http://ashnin.com/clk/muryutaitakenattogyo?YHG94622&yhad50447" target="_blank" rel="nofollow">http://rd.yahoo.com/SIGcsob15t/M)0828.4794622.5939935.1261774/D=egroupweb/S06554205:HM/EXP81532860/A50447/R=0/SIG4ri7d3j/*http://ashnin.com/clk/muryutaitakenattogyo?YHG94622&yhad50447 > > > >. |
