comparison code_part1/OSTC_code_asm_part1/MAIN.ASM @ 760:e16e636def61

2.74 release
author heinrichsweikamp
date Sun, 01 Dec 2013 10:33:12 +0100
parents d68c6a6b1f38
children c50296c3059e
comparison
equal deleted inserted replaced
759:ae830d5e63ef 760:e16e636def61
45 movff PRODL,prod_temp+0 45 movff PRODL,prod_temp+0
46 movff PRODH,prod_temp+1 46 movff PRODH,prod_temp+1
47 47
48 movf PORTB,W ; move portb into latch register 48 movf PORTB,W ; move portb into latch register
49 49
50 btfsc PIR1,TMR1IF ; Timer1 INT (external 32.768kHz Clock)
51 call timer1int
52
53 btfsc INTCON,TMR0IF ; Timer0 INT (Debounce Timer) 50 btfsc INTCON,TMR0IF ; Timer0 INT (Debounce Timer)
54 call timer0int 51 call timer0int
55
56 btfsc PIR1,RCIF ; UART
57 call uartint
58 52
59 btfsc INTCON,INT0IF ; Switch left 53 btfsc INTCON,INT0IF ; Switch left
60 call switch_left_int 54 call switch_left_int
61 55
62 btfsc INTCON3,INT1IF ; switch right 56 btfsc INTCON3,INT1IF ; switch right
63 call switch_right_int 57 call switch_right_int
58
59 btfsc PIR1,TMR1IF ; Timer1 INT (external 32.768kHz Clock)
60 call timer1int
61
62 btfsc PIR1,RCIF ; UART
63 call uartint
64 64
65 movff prod_temp+1,PRODH 65 movff prod_temp+1,PRODH
66 movff prod_temp+0,PRODL 66 movff prod_temp+0,PRODL
67 retfie FAST 67 retfie FAST
68 68