aydi
Newbie level 4
good morning,
i have two errors when i try to compile the following program.
please can any one help me to solve this PB.
thanks an advance.
message error:
Make: The target "D:\TP2_asm\TP2.o" is out of date.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F84 "TP2.asm" /l"TP2.lst" /e"TP2.err"
Message[302] D:\TP2_ASM\TP2.ASM 13 : Register in operand not in bank 0. Ensure that bank bits are correct.
Error[113] D:\TP2_ASM\TP2.ASM 19 : Symbol not previously defined (*)
Error[112] D:\TP2_ASM\TP2.ASM 19 : Missing operator
Error[113] D:\TP2_ASM\TP2.ASM 22 : Symbol not previously defined (*)
Error[112] D:\TP2_ASM\TP2.ASM 22 : Missing operator
Message[305] D:\TP2_ASM\TP2.ASM 36 : Using default destination of 1 (file).
Message[305] D:\TP2_ASM\TP2.ASM 38 : Using default destination of 1 (file).
Halting build on first failure as requested.
BUILD FAILED: Tue Sep 20 03:30:12 2011
i have two errors when i try to compile the following program.
please can any one help me to solve this PB.
thanks an advance.
message error:
Make: The target "D:\TP2_asm\TP2.o" is out of date.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F84 "TP2.asm" /l"TP2.lst" /e"TP2.err"
Message[302] D:\TP2_ASM\TP2.ASM 13 : Register in operand not in bank 0. Ensure that bank bits are correct.
Error[113] D:\TP2_ASM\TP2.ASM 19 : Symbol not previously defined (*)
Error[112] D:\TP2_ASM\TP2.ASM 19 : Missing operator
Error[113] D:\TP2_ASM\TP2.ASM 22 : Symbol not previously defined (*)
Error[112] D:\TP2_ASM\TP2.ASM 22 : Missing operator
Message[305] D:\TP2_ASM\TP2.ASM 36 : Using default destination of 1 (file).
Message[305] D:\TP2_ASM\TP2.ASM 38 : Using default destination of 1 (file).
Halting build on first failure as requested.
BUILD FAILED: Tue Sep 20 03:30:12 2011
Code:
list p=16F84 ; Pic 16F84 est le processeur cible
#include "p16F84.inc" ; inclure fichier d’entête
CBLOCK 0x10 ; Zone tampon
l1, l2
ENDC
org 0x00 ; Vecteur de début
bcf STATUS,RP0 ; Sélectionner la bank1
bcf STATUS,RP1
clrf PORTA ; S’assurer que PORTA vaut zéro avant validation
clrf PORTB ; S’assurer que PORTB vaut zéro avant validation
bsf STATUS,RP0 ; Sélectionner la bank1
clrf TRISB ; PORTB en sortie
bcf STATUS,RP0 ; Sélectionner la bank0
loop
movlw 0x41 ; Vert et rouge
movwf PORTB ; écrire vers port
call wait ; attendre
movlw 0x23* ; orange et rouge
movwf PORTB ; écrire vers port
call wait ; attendre
movlw 0x14* ;rouge et vert
movwf PORTB ; écrire vers port
call wait ; attendre
movlw 0x32 ; rouge/orange et orange
movwf PORTB ; écrire vers port
call wait ; attendre
goto loop ; ET boucler
wait
movlw 5
movwf l1
w1
clrf l2
w2
decfsz l2
goto w2
decfsz l1
goto w1
return
End