Praveen Kumar P S
Member level 4
Hello guys ..
I have started using asm language for the first time...i m completely new to asm, mpasm and mplabx...
i tried some code which i got from google....
here is the code:::
The code build sucessfully....but when i tried to _config it, shows a lot of errors..
also the above code build sucessfully...but with warning messages....
PLz help me guys.....
Thank You..
I have started using asm language for the first time...i m completely new to asm, mpasm and mplabx...
i tried some code which i got from google....
here is the code:::
Code:
list p=16f877a
org 0x00 ; start at address 0
; At startup, all ports are inputs.
; Set Port B to all outputs.
fin:
movlw B'00000000' ; w := binary 00000000
tris 5 ; copy w to port B control reg
; Put a 1 in the lowest bit of port B.
movlw B'00000001' ; w := binary 00000001
movwf 6 ; copy w to port B itself
; Stop by going into an endless loop
goto fin
end
The code build sucessfully....but when i tried to _config it, shows a lot of errors..
also the above code build sucessfully...but with warning messages....
Code:
"C:\Program Files (x86)\Microchip\MPLABX\mpasmx\mpasmx.exe" -d__DEBUG -q -p16f877a -l"build/default/debug/led.lst" -e"build/default/debug/led.err" -o"build/default/debug/led.o" "led.asm"
Warning[205] E:\PROJECT\MPLABX\INITAL\LED.ASM 1 : Found directive in column 1. (list)
Warning[205] E:\PROJECT\MPLABX\INITAL\LED.ASM 2 : Found directive in column 1. (org)
Warning[203] E:\PROJECT\MPLABX\INITAL\LED.ASM 6 : Found opcode in column 1. (movlw)
Warning[203] E:\PROJECT\MPLABX\INITAL\LED.ASM 7 : Found opcode in column 1. (tris)
Warning[224] E:\PROJECT\MPLABX\INITAL\LED.ASM 7 : Use of this instruction is not recommended.
Warning[203] E:\PROJECT\MPLABX\INITAL\LED.ASM 10 : Found opcode in column 1. (movlw)
Warning[203] E:\PROJECT\MPLABX\INITAL\LED.ASM 11 : Found opcode in column 1. (movwf)
Warning[203] E:\PROJECT\MPLABX\INITAL\LED.ASM 13 : Found opcode in column 1. (goto)
Warning[205] E:\PROJECT\MPLABX\INITAL\LED.ASM 14 : Found directive in column 1. (end)
PLz help me guys.....
Thank You..