Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/menu_custom.asm @ 337:6bdf80d7276c ScreenDump
Added screen dumps of general menus.
Added screen dumps in logbook, gassetup, license.
Added screen dumps in altimeter, decoplan.
author | JeanDo |
---|---|
date | Tue, 17 May 2011 01:05:04 +0200 |
parents | d36fe3651d56 |
children | f49d6f0fc870 |
comparison
equal
deleted
inserted
replaced
336:9ee86a19f1fa | 337:6bdf80d7276c |
---|---|
278 | 278 |
279 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | 279 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! |
280 call PLED_menu_cursor | 280 call PLED_menu_cursor |
281 | 281 |
282 customfunctions_loop: | 282 customfunctions_loop: |
283 call check_switches_logbook | 283 call check_switches_logbook |
284 | 284 |
285 btfsc menubit3 | 285 btfsc menubit3 |
286 bra customfunctions2 ; Move cursor or generate next page | 286 bra customfunctions2 ; Move cursor or generate next page |
287 | 287 |
288 btfsc menubit2 | 288 btfsc menubit2 |
289 bra do_customfunction ; call subfunction | 289 bra do_customfunction ; call subfunction |
290 | 290 |
291 btfsc divemode | 291 btfsc divemode |
292 goto restart ; dive started during cf menu | 292 goto restart ; dive started during cf menu |
293 | 293 |
294 btfsc onesecupdate | 294 btfsc onesecupdate |
295 call timeout_surfmode | 295 call timeout_surfmode |
296 | 296 |
297 btfsc onesecupdate | 297 btfsc onesecupdate |
298 call set_dive_modes | 298 call set_dive_modes |
299 | 299 |
300 bcf onesecupdate ; end of 1sek. tasks | 300 bcf onesecupdate ; end of 1sek. tasks |
301 | |
302 btfsc uart_dump_screen ; Dumps screen contains ? | |
303 call dump_screen ; Yes! | |
304 | 301 |
305 btfsc sleepmode | 302 btfsc sleepmode |
306 bra exit_customfunctions | 303 bra exit_customfunctions |
307 | 304 |
308 bra customfunctions_loop | 305 bra customfunctions_loop |
309 | 306 |
310 customfunctions2: | 307 customfunctions2: |
311 incf menupos,F | 308 incf menupos,F |
312 movf cf_type,W ; Are we editing a boolean value ? | 309 movf cf_type,W ; Are we editing a boolean value ? |
313 xorlw CF_BOOL | 310 xorlw CF_BOOL |