comparison code_part1/OSTC_code_asm_part1/MAIN.ASM @ 238:9581e48a914f

Some cleanup in the ISR
author heinrichsweikamp
date Sun, 20 Mar 2011 17:55:21 +0100
parents 53b16a746166
children 447390289f47 2144f19fa1eb
comparison
equal deleted inserted replaced
237:55178aa1f972 238:9581e48a914f
57 call timer1int 57 call timer1int
58 58
59 btfsc INTCON,TMR0IF ;Timer0 INT (Debounce Timer) 59 btfsc INTCON,TMR0IF ;Timer0 INT (Debounce Timer)
60 call timer0int 60 call timer0int
61 61
62 btfsc PIR2,TMR3IF ;Timer3 INT (Delay for PWM Buzzer)
63 call timer3int
64
65 btfsc PIR1,RCIF ; UART 62 btfsc PIR1,RCIF ; UART
66 call uartint 63 call uartint
67 64
68 btfsc INTCON,INT0IF ; Switch left 65 btfsc INTCON,INT0IF ; Switch left
69 call schalter_links 66 call switch_left_int
70 67
71 btfsc INTCON3,INT1IF ; switch right 68 btfsc INTCON3,INT1IF ; switch right
72 call schalter_rechts 69 call switch_right_int
73 70
74 movff prod_temp+1,PRODH 71 movff prod_temp+1,PRODH
75 movff prod_temp+0,PRODL 72 movff prod_temp+0,PRODL
76 movff wreg_temp,WREG ;restore working register 73 movff wreg_temp,WREG ;restore working register
77 movff status_temp,STATUS ;restore STATUS register 74 movff status_temp,STATUS ;restore STATUS register
132 MESSG "Free Software Foundation, either version 3 of the License, or (at your option) any later version." 129 MESSG "Free Software Foundation, either version 3 of the License, or (at your option) any later version."
133 MESSG "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY" 130 MESSG "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY"
134 MESSG "or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details." 131 MESSG "or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details."
135 MESSG "You should have received a copy of the GNU General Public License along with this program.If not, see http://www.gnu.org/licenses/." 132 MESSG "You should have received a copy of the GNU General Public License along with this program.If not, see http://www.gnu.org/licenses/."
136 133
134 ifdef __DEBUG
135 MESSG "OSTC Mk.2 code compiled in DEBUG configuration!"
136 else
137 MESSG "OSTC Mk.2 code compiled in RELEASE configuration!"
138 endif
139
140
137 END ; end of program 141 END ; end of program
138 142