Академический Документы
Профессиональный Документы
Культура Документы
com 1/2
Exercice 1
Etiquette Instructions
movlw 0x02
movwf xdata
decfsz xdata,f
goto saut
movlw 0x0A
movwf xdata
saut decfsz xdata,f
goto saut
decf xdata,f
Exercice 2
Etiquette Instructions
movlw 0xFF
movwf xdata
incfsz xdata,f
goto boucle
movlw 0x01
movwf xdata
boucle decfsz xdata,w
goto boucle
decf xdata,f
Exercice 3
Etiquette Instructions
clrf ydata
movlw 0x0A
movwf xdata
rec incf ydata,f
decf xdata,f
btfss STATUS,Z
goto rec
decf xdata,f
Exercice 4
Etiquette Instructions
debut clrf compt
compter movf compt,w
movwf PORTB
incf compt,f
movlw 0x0A
xorwf compt,w
btfss STATUS,Z
goto compter
goto debut