You are on page 1of 9

list p=16f84

movlw 0x7e
movwf cero
movlw 0x30
movwf uno
movlw 0x6d
movwf dos
movlw 0x79
movwf tres
movlw 0x33
movwf cuatro
movlw 0x5b
movwf cinco
movlw 0x5f
movwf seis
movlw 0x70
movwf siete
movlw 0x7f
movwf ocho
movlw 0x7b
movwf nueve
inicio bsf status,5
movlw 0x07
movwf roption
movlw 0x00
movwf trisb
movlw 0x00
movwf trisa
bcf status,5
movlw 0x1f
movwf porta
movf cero,0
movwf portb
bsf portb,7
movlw 0x01
movwf porta
bcf portb,7

call cont090
rlf porta,1
movf uno,0
movwf portb
rrf porta,1
call cont090
rlf porta,1
movf dos,0
movwf portb
rrf porta,1
call cont090
rlf porta,1
movf tres,0
movwf portb
rrf porta,1
call cont090
rlf porta,1
movf cuatro,0
movwf portb
rrf porta,1
call cont090
rlf porta,1
movf cinco,0
movwf portb
rrf porta,1
call cont090
rlf porta,1
movf cero,0
movwf portb
rlf porta,1
movf uno,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf dos,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf tres,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf cuatro,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf cinco,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf seis,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf siete,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf ocho,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf nueve,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf cero,0
movwf portb
rlf porta,1 3display
movf uno,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
call minutos
rlf porta,1
movf dos,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
call minutos
rlf porta,1
movf tres,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
call minutos
rlf porta,1
movf cuatro,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
call minutos
rlf porta,1
movf cinco,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
call minutos
rlf porta,1
movf cero,0
movwf portb hasta aqui 00 00
rlf porta,1
movf uno,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf dos,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf tres,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf cuatro,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf cinco,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf seis,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf siete,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf ocho,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf nueve,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf cero,0
movwf portb
rlf porta,1
movf uno,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf uno,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf dos,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf tres,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf cuatro,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf cinco,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf seis,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf siete,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf ocho,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf nueve,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf cero,0
movwf portb
rlf porta,1
movf dos,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf uno,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf dos,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf tres,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
rrf porta,1
call horas
rlf porta,1
movf cero,0
movwf portb
rlf porta,1
movf cero,0
movwf portb
goto inicio

horas call minutos


rlf porta,1
movf uno,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
call minutos
rlf porta,1
movf dos,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
call minutos
rlf porta,1
movf tres,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
call minutos
rlf porta,1
movf cuatro,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
call minutos
rlf porta,1
movf cinco,0
movwf portb
rrf porta,1
rrf porta,1
rrf porta,1
call minutos
rlf porta,1
movf cero,0
movwf portb
return
minutos call segundos
rlf porta,1
movf uno,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf dos,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf tres,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf cuatro,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf cinco,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf seis,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf siete,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf ocho,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf nueve,0
movwf portb
rrf porta,1
rrf porta,1
call segundos
rlf porta,1
movf cero,0
movwf portb
return
segundos call cont090
rlf porta,1
movf uno,0
movwf portb
rrf porta,1
call cont090
rlf porta,1
movf dos,0
movwf portb
rrf porta,1
call cont090
rlf porta,1
movf tres,0
movwf portb
rrf porta,1
call cont090
rlf porta,1
movf cuatro,0
movwf portb
rrf porta,1
call cont090
rlf porta,1
movf cinco,0
movwf portb
rrf porta,1
call cont090
rlf porta,1
movf cero,0
movwf portb
return

cont090 movf cero,0


movwf portb
movf uno,0
movwf portb
movf dos,0
movwf portb
movf tres,0
movwf portb
movf cuatro,0
movwf portb
movf cinco,0
movwf portb
movf seis,0
movwf portb
movf siete,0
movwf portb
movf ocho,0
movwf portb
movf nueve,0
movwf portb
movf cero,0
movwf portb
return

You might also like