Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
;EJ1.ASM
; -------------------------------------------------------
; --------------------------------------------------------
__CONFIG _CP_OFF & _DATA_CP_OFF & _LVP_OFF & _BOREN_OFF & _MCLRE_OFF &
_WDT_OFF & _PWRTE_ON & _INTOSC_OSC_NOCLKOUT ;configuramos (oscilador, tipo
etc.)
RADIX HEX
movlw 0x07
movwf TRISB
movlw b'00000000'
movwf TRISA
bcf STATUS, RP0 ;Selecciono de nuevo el Bank 0
Loop
movwf PORTA
movwf PORTA
movwf PORTA
movwf PORTA
movwf PORTA
movwf PORTA
movwf PORTA
movwf PORTA
movwf PORTB
call Delay ;Llamo a la rutina que espera ...
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTB
movwf PORTA
movwf PORTA
movwf PORTA
movwf PORTA
call Delay ;Llamo de nuevo a la rutina que espera .
movwf PORTA
movwf PORTA
movwf PORTA
movwf PORTA
movwf reg1
movwf reg2
movwf reg3
goto uno
decfsz reg2,f
goto dos
decfsz reg1,f
goto tres
return
end