Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/menu_gassetup.asm @ 575:cbdcbbc91877
some code cleaning
author | heinrichsweikamp |
---|---|
date | Sat, 21 Apr 2012 15:08:09 +0200 |
parents | 7f5419d4157d |
children | ab2686087bce |
comparison
equal
deleted
inserted
replaced
574:101fec6a6137 | 575:cbdcbbc91877 |
---|---|
190 bra gassetup_list2 ; move cursor | 190 bra gassetup_list2 ; move cursor |
191 | 191 |
192 btfsc menubit2 | 192 btfsc menubit2 |
193 bra do_gassetup_list ; call gas-specific submenu | 193 bra do_gassetup_list ; call gas-specific submenu |
194 | 194 |
195 btfsc divemode | |
196 goto restart ; dive started! | |
197 | |
198 btfsc onesecupdate | 195 btfsc onesecupdate |
199 call timeout_surfmode | 196 call menu_check_dive_and_timeout ; "Goto restart" or sets sleepmode flag |
200 | |
201 btfsc onesecupdate | |
202 call set_dive_modes | |
203 | 197 |
204 bcf onesecupdate ; 1 sec. functions done | 198 bcf onesecupdate ; 1 sec. functions done |
205 | 199 |
206 btfsc sleepmode | 200 btfsc sleepmode |
207 bra exit_gassetup_list | 201 bra exit_gassetup_list |
423 bra gassetup2 ; move cursor | 417 bra gassetup2 ; move cursor |
424 | 418 |
425 btfsc menubit2 | 419 btfsc menubit2 |
426 bra do_gassetup ; call submenu | 420 bra do_gassetup ; call submenu |
427 | 421 |
428 btfsc divemode | |
429 goto restart ; dive started! | |
430 | |
431 btfsc onesecupdate | 422 btfsc onesecupdate |
432 call timeout_surfmode | 423 call menu_check_dive_and_timeout ; "Goto restart" or sets sleepmode flag |
433 | |
434 btfsc onesecupdate | |
435 call set_dive_modes | |
436 | 424 |
437 bcf onesecupdate ; 1 sec. functions done | 425 bcf onesecupdate ; 1 sec. functions done |
438 | 426 |
439 btfsc sleepmode | 427 btfsc sleepmode |
440 bra exit_gassetup | 428 bra exit_gassetup |
768 bra next_gas_page2 ; move cursor | 756 bra next_gas_page2 ; move cursor |
769 | 757 |
770 btfsc menubit2 | 758 btfsc menubit2 |
771 bra do_next_gas_page ; call submenu | 759 bra do_next_gas_page ; call submenu |
772 | 760 |
773 btfsc divemode | |
774 goto restart ; dive started! | |
775 | |
776 btfsc onesecupdate | 761 btfsc onesecupdate |
777 call timeout_surfmode | 762 call menu_check_dive_and_timeout ; "Goto restart" or sets sleepmode flag |
778 | |
779 btfsc onesecupdate | |
780 call set_dive_modes | |
781 | 763 |
782 bcf onesecupdate ; 1 sec. functions done | 764 bcf onesecupdate ; 1 sec. functions done |
783 | 765 |
784 btfsc sleepmode | 766 btfsc sleepmode |
785 bra exit_gassetup | 767 bra exit_gassetup |