Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setC:
- bcf status,6
- bsf status,5
- movlw 0xF0
- movwf trisc
- bcf status,5
- start0:
- bsf portc,0
- bcf portc,1
- bcf portc,2
- btfsc portc,4
- goto key1
- btfsc portc,5
- goto key2
- btfsc portc,6
- goto key3
- btfsc portc,7
- goto key4
- portc1:
- bsf portc,1
- bcf portc,0
- bcf portc,2
- btfsc portc,4
- goto key5
- btfsc portc,5
- goto key6
- btfsc portc,6
- goto key7
- btfsc portc,7
- goto key8
- portc2:
- bsf portc,2
- bcf portc,0
- bcf portc,1
- btfsc portc,4
- goto key9
- btfsc portc,5
- goto key0
- call low
- goto start0
- key1:
- bcf status,6
- bsf status,5
- movlw 0
- movwf trisb
- bcf status,5
- movlw 0x6
- movwf portb
- goto start0
- key2:
- bcf status,6
- bsf status,5
- movlw 0
- movwf trisb
- bcf status,5
- movlw 0x5B
- movwf portb
- goto start0
- key3:
- bcf status,6
- bsf status,5
- movlw 0
- movwf trisb
- bcf status,5
- movlw 0x4F
- movwf portb
- goto start0
- key4:
- bcf status,6
- bsf status,5
- movlw 0
- movwf trisb
- bcf status,5
- movlw 0x66
- movwf portb
- goto start0
- key5:
- bcf status,6
- bsf status,5
- movlw 0
- movwf trisb
- bcf status,5
- movlw 0x6D
- movwf portb
- goto start0
- key6:
- bcf status,6
- bsf status,5
- movlw 0
- movwf trisb
- bcf status,5
- movlw 0x7D
- movwf portb
- goto start0
- key7:
- bcf status,6
- bsf status,5
- movlw 0
- movwf trisb
- bcf status,5
- movlw 0x7
- movwf portb
- goto start0
- key8:
- bcf status,6
- bsf status,5
- movlw 0
- movwf trisb
- bcf status,5
- movlw 0x7F
- movwf portb
- goto start0
- key9:
- bcf status,6
- bsf status,5
- movlw 0
- movwf trisb
- bcf status,5
- movlw 0x67
- movwf portb
- goto start0
- key0:
- bcf status,6
- bsf status,5
- movlw 0
- movwf trisb
- bcf status,5
- movlw 0x3F
- movwf portb
- goto start0
- low:
- bcf status,6
- bsf status,5
- movlw 0
- movwf trisb
- bcf status,5
- movlw 0
- movwf portb
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement