Professional Documents
Culture Documents
Paterddfdf
Paterddfdf
Paterddfdf
LIST
P=PIC16F84A
INCLUDE <P16F84A.INC>
CBLOCK
0x0C
cont1, cont2, cont3, conteo, comparar, decenas
ENDC
org
0x00
goto inicio
inicio
bsf
movlw
movwf
movlw
movwf
bcf
clrf
STATUS,RP0
b'00000001'
TRISA
b'00000000'
TRISB
STATUS,RP0
PORTB
motor
bsf
bcf
PORTA,1
PORTA,2
dec0
bcf
bcf
bcf
bcf
call
goto
PORTB,0
PORTB,1
PORTB,2
PORTB,3
inicio_9
dec1
dec1
bsf
bcf
bcf
bcf
call
goto
PORTB,0
PORTB,1
PORTB,2
PORTB,3
inicio_9
dec2
dec2
bcf
bsf
bcf
bcf
call
goto
PORTB,0
PORTB,1
PORTB,2
PORTB,3
inicio_9
dec3
dec3
bsf
bsf
bcf
bcf
call
goto
PORTB,0
PORTB,1
PORTB,2
PORTB,3
inicio_9
dec4
dec4
bcf
bcf
bsf
bcf
call
goto
PORTB,0
PORTB,1
PORTB,2
PORTB,3
inicio_9
dec0
inicio_9
;cero
bcf
bcf
PORTB,4
PORTB,5
bcf
bcf
btfsc
goto
btfsc
goto
goto
;uno
bsf
bcf
bcf
bcf
btfsc
goto
btfsc
PORTB,6
PORTB,7
PORTA,0
$-.5
PORTA,0
$+.2
$-.2
goto
goto
;dos
bcf
bsf
bcf
bcf
btfsc
goto
btfsc
goto
goto
;tres
bsf
bsf
bcf
bcf
btfsc
goto
btfsc
goto
goto
;cuatro
bcf
bcf
bsf
bcf
btfsc
goto
btfsc
goto
goto
;cinco
bsf
bcf
bsf
bcf
btfsc
goto
btfsc
goto
$+.2
$-.2
PORTB,4
PORTB,5
PORTB,6
PORTB,7
PORTA,0
$-.5
PORTA,0
PORTB,4
PORTB,5
PORTB,6
PORTB,7
PORTA,0
$-.5
PORTA,0
$+.2
$-.2
PORTB,4
PORTB,5
PORTB,6
PORTB,7
PORTA,0
$-.5
PORTA,0
$+.2
$-.2
PORTB,4
PORTB,5
PORTB,6
PORTB,7
PORTA,0
$-.5
PORTA,0
$+.2
$-.2
PORTB,4
PORTB,5
PORTB,6
PORTB,7
PORTA,0
$-.5
PORTA,0
$+.2
goto
;seis
bcf
bsf
bsf
bcf
btfsc
goto
btfsc
goto
goto
;siete
bsf
bsf
bsf
bcf
btfsc
goto
btfsc
goto
goto
;ocho
bcf
bcf
bcf
bsf
btfsc
goto
btfsc
goto
goto
;nueve
bsf
bcf
bcf
bsf
btfsc
goto
btfss
goto
return
end
$-.2
PORTB,4
PORTB,5
PORTB,6
PORTB,7
PORTA,0
$-.5
PORTA,0
$+.2
$-.2
PORTB,4
PORTB,5
PORTB,6
PORTB,7
PORTA,0
$-.5
PORTA,0
$+.2
$-.2
PORTB,4
PORTB,5
PORTB,6
PORTB,7
PORTA,0
$-.5
PORTA,0
$+.2
$-.2
PORTB,4
PORTB,5
PORTB,6
PORTB,7
PORTA,0
$-.5
PORTA,0
$-.1