Академический Документы
Профессиональный Документы
Культура Документы
;;;;;;;;;DEFINE;;;;;;;;;;;;;;;;
;;;;;;;;;MACROS;;;;;;;;;;;;;;;;
bank0 macro
bcf status,rp0
endm
bank1 macro
bsf status,rp0
endm
;;;;;;;;;PROGRAMME PRINCIPAL;;;;;;;;;;;;;;;;
;config
bank1
bsf trisa,0
bcf trisb,0
bcf trisb,1
bcf trisb,2
;initialisation
bank0
bcf led_jaune
bcf led_orange
bcf led_verte
test1
call tempo1
call tempo1
goto test1
test2
call tempo1
call tempo1
goto test1
test3
call tempo1
call tempo1
call tempo1
call tempo1
goto test2
tempo1
boucle3
boucle2
boucle1
;;;;;;;;;;;;;;;;;;;;;FIN SOUS-ROUTINE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;fin du programme;;;;;;;;;;;;;;;;;;;;;;;;;
end