Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 795:d696a824682d
BUGFIX: Color of "Menu?" in divemode
| author | heinrichsweikamp |
|---|---|
| date | Mon, 29 Sep 2014 14:56:12 +0200 |
| parents | 9eba1eb8ca38 |
| children | c50296c3059e |
comparison
equal
deleted
inserted
replaced
| 794:e8af55eb83cb | 795:d696a824682d |
|---|---|
| 47 clrf timeout_counter3 ; timeout_divemenu | 47 clrf timeout_counter3 ; timeout_divemenu |
| 48 | 48 |
| 49 btfsc FLAG_apnoe_mode ; In Apnoe mode? | 49 btfsc FLAG_apnoe_mode ; In Apnoe mode? |
| 50 bra test_switches_divemode1 ; Yes! | 50 bra test_switches_divemode1 ; Yes! |
| 51 | 51 |
| 52 call DISP_divemask_color ; Set Color for Divemode mask | |
| 52 WIN_INVERT .1 | 53 WIN_INVERT .1 |
| 53 DISPLAYTEXT .4 ;Menu? | 54 DISPLAYTEXT .4 ;Menu? |
| 54 WIN_INVERT .0 | 55 WIN_INVERT .0 |
| 56 call DISP_standard_color | |
| 55 return | 57 return |
| 56 | 58 |
| 57 test_switches_divemode0: | 59 test_switches_divemode0: |
| 58 btfss menu3_active ; Something to do at Menupos=3? | 60 btfss menu3_active ; Something to do at Menupos=3? |
| 59 bra test_switches_divemode_a ; No | 61 bra test_switches_divemode_a ; No |
| 109 btfsc switch_left | 111 btfsc switch_left |
| 110 bra test_switches_divemode_menu3 | 112 bra test_switches_divemode_menu3 |
| 111 btfss switch_right | 113 btfss switch_right |
| 112 return | 114 return |
| 113 | 115 |
| 116 bcf switch_right ; Left button pressed | |
| 117 | |
| 114 btfsc display_see_deco ; Is the Decoplan displayed? | 118 btfsc display_see_deco ; Is the Decoplan displayed? |
| 115 bra divemenu_see_decoplan2 ; Yes, exit menu on left button press | 119 bra divemenu_see_decoplan2 ; Yes, exit menu on left button press |
| 116 | 120 |
| 117 bcf switch_right ; Left button pressed | |
| 118 clrf timeout_counter3 ; timout_divemenu! | 121 clrf timeout_counter3 ; timout_divemenu! |
| 119 incf menupos,F | 122 incf menupos,F |
| 120 | 123 |
| 121 ; Following routine configures the number of menu entries for the different modes | 124 ; Following routine configures the number of menu entries for the different modes |
| 122 movlw d'6' ; number of available gases+1, ; number of menu options+1 | 125 movlw d'6' ; number of available gases+1, ; number of menu options+1 |
