Why do i get this Warning[203] : Found opcode in column 1. (clrf)?

Status
Not open for further replies.

masoud23

New Member
Hi
I have just begun learning about programming pic processor using MPLAB IDE User guide. I succeeded to build my first program using code from the user guide but I get this warning. I can’t see what I have missed?

Code:
COUNT		RES 1
DVAR		RES 1
DVAR2		RES 1


Main:
clrf WREG
movwf PORTC; clear PORTC
movwf TRISC; configure PORTC as all outputs
Init
clrf COUNT
IncCount
incf COUNT
movf COUNT,W
movwf PORTC; display COUNT on PORTC
callDelay
goto IncCount; infinite loop
Delay
movlw 0x40; set outer delay loop
movwf DVAR2
Delay0
movlw 0xFF
movwf DVAR; set inner delay loop
Delay1
decfsz DVAR
goto Delay1
decfsz DVAR2
goto Delay0
return



Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 140 : Found opcode in column 1. (clrf)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 141 : Found opcode in column 1. (movwf)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 142 : Found opcode in column 1. (movwf)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 144 : Found opcode in column 1. (clrf)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 146 : Found opcode in column 1. (incf)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 147 : Found opcode in column 1. (movf)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 148 : Found opcode in column 1. (movwf)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 150 : Found opcode in column 1. (goto)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 152 : Found opcode in column 1. (movlw)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 153 : Found opcode in column 1. (movwf)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 155 : Found opcode in column 1. (movlw)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 156 : Found opcode in column 1. (movwf)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 158 : Found opcode in column 1. (decfsz)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 159 : Found opcode in column 1. (goto)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 160 : Found opcode in column 1. (decfsz)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 161 : Found opcode in column 1. (goto)
Warning[203] C:\PROGRAM\MICROCHIP\MPASM SUITE\TEMPLATE\OBJECT\18F452TMPO.ASM 162 : Found opcode in column 1. (return)



Tanks in advance
 
The messages are pretty self explanatory - you have opcodes in the left hand column, they need to be tabbed (or spaced) to the next column to the right. Only labels should be in the first column.
 
You need the definition file ie.. LIST = P12f629 and #include "P12F629.INC"

Cheers Ian


Sorry I read error's not warning my mistake!!
 
Last edited:
As Nigel said, the operators are supposed to be tabbed in (put into column 2), though it still works if they are in column 1. That is the reason for the "warning" rather than the "error."
Der Strom
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…