Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/menu_settime.asm @ 50:c97c5514b165
1.70..
author | heinrichsweikamp |
---|---|
date | Thu, 29 Jul 2010 13:23:08 +0200 |
parents | 96a35aeda5f2 |
children | 263348f83485 |
comparison
equal
deleted
inserted
replaced
49:cd5b650920f6 | 50:c97c5514b165 |
---|---|
154 clrf secs | 154 clrf secs |
155 bcf onesecupdate | 155 bcf onesecupdate |
156 | 156 |
157 set_time_done_loop | 157 set_time_done_loop |
158 btfss onesecupdate | 158 btfss onesecupdate |
159 bra set_time_done_loop | 159 bra set_time_done_loop |
160 bcf onesecupdate | 160 bcf onesecupdate |
161 | 161 |
162 call set_date_refresh | 162 call set_date_refresh |
163 | 163 |
164 WIN_LEFT .70 | 164 WIN_LEFT .70 |
227 set_time_next_or_exit5: | 227 set_time_next_or_exit5: |
228 call word_processor | 228 call word_processor |
229 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | 229 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! |
230 return | 230 return |
231 | 231 |
232 | |
233 add_hours_or_minutes_or_date: | 232 add_hours_or_minutes_or_date: |
234 bcf switch_right | 233 bcf switch_right |
235 clrf secs | 234 clrf secs |
236 | 235 |
237 btfsc set_year | 236 btfsc set_year |
238 bra add_year | 237 bra add_year |
239 | 238 |
240 btfsc set_day | 239 btfsc set_day |
241 bra add_day | 240 bra add_day |
242 | 241 |
243 btfsc set_month | 242 btfsc set_month |
244 bra add_month | 243 bra add_month |
245 | 244 |
246 btfsc set_minutes | 245 btfsc set_minutes |
247 bra add_minutes | 246 bra add_minutes |
248 ; Also Stunden erhöhen | 247 ; Increase hours |
249 add_hours: | 248 add_hours: |
250 incf hours,F | 249 incf hours,F |
251 movlw d'23' | 250 movlw d'23' |
252 cpfsgt hours | 251 cpfsgt hours |
253 bra set_time_refresh_x | 252 bra set_time_refresh_x |