Mercurial > public > mk2
annotate code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 669:069f708a6a09
language updates
author | heinrichsweikamp |
---|---|
date | Mon, 03 Dec 2012 10:58:19 +0100 |
parents | 3282581fe178 |
children | 7e651625d4c0 |
rev | line source |
---|---|
0 | 1 ; OSTC - diving computer code |
2 ; Copyright (C) 2008 HeinrichsWeikamp GbR | |
3 | |
4 ; This program is free software: you can redistribute it and/or modify | |
5 ; it under the terms of the GNU General Public License as published by | |
6 ; the Free Software Foundation, either version 3 of the License, or | |
7 ; (at your option) any later version. | |
8 | |
9 ; This program is distributed in the hope that it will be useful, | |
10 ; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 ; GNU General Public License for more details. | |
13 | |
14 ; You should have received a copy of the GNU General Public License | |
15 ; along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | |
17 | |
18 ; Underwater Menu (Set Gas, Decoplan, etc.) | |
19 ; written by: Matthias Heinrichs, info@heinrichsweikamp.com | |
20 ; written: 11/11/05 | |
21 ; last updated: 090305 | |
22 ; known bugs: | |
23 ; ToDo: | |
24 | |
25 | |
112 | 26 test_switches_divemode: ; checks switches in divemode |
337 | 27 btfsc uart_dump_screen ; Asked to dump screen contains ? |
28 call dump_screen ; Yes! | |
29 | |
0 | 30 btfsc switch_left |
31 bra test_switches_divemode2 | |
32 | |
33 btfss switch_right | |
34 return | |
576 | 35 |
36 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | |
0 | 37 |
38 bcf select_bailoutgas ; Clear Flag for Bailout list | |
277
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
39 |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
40 btfsc premenu ; Pre-Menu? already shown? |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
41 bra test_switches_divemode0 ; Yes, check if we should jump to menu Entry3 |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
42 |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
43 test_switches_divemode_a: |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
44 |
0 | 45 bsf premenu ; Set Flag for premenu |
46 bcf menubit | |
47 clrf timeout_counter3 ; timeout_divemenu | |
48 | |
49 btfsc FLAG_apnoe_mode ; In Apnoe mode? | |
50 bra test_switches_divemode1 ; Yes! | |
51 | |
52 WIN_INVERT .1 | |
53 DISPLAYTEXT .4 ;Menu? | |
54 WIN_INVERT .0 | |
55 return | |
56 | |
277
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
57 test_switches_divemode0: |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
58 btfss menu3_active ; Something to do at Menupos=3? |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
59 bra test_switches_divemode_a ; No |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
60 ; Yes! So show menu and jump to this position |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
61 movlw d'3' |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
62 movwf menupos |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
63 bra test_switches_divemode2b ; Show menu with cursor at menupos=3 |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
64 |
0 | 65 test_switches_divemode1: |
66 DISPLAYTEXT .141 ;Quit? | |
67 return | |
68 | |
69 test_switches_divemode2: | |
576 | 70 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! |
0 | 71 |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
72 btfsc premenu |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
73 bra test_switches_divemode2_2 |
109
6e635bf5b7a7
fixed double-effect of ENTER button in divemode
heinrichsweikamp
parents:
107
diff
changeset
|
74 btfsc menubit |
6e635bf5b7a7
fixed double-effect of ENTER button in divemode
heinrichsweikamp
parents:
107
diff
changeset
|
75 bra test_switches_divemode2_2 ; Not in Premenu or Menu... |
0 | 76 |
112 | 77 bsf toggle_customview ; Toggle customview (Cleared in customview.asm) |
78 | |
79 btfsc standalone_simulator ; Standalone Simualtor active? | |
80 bra divemode_menu_simulator ; Yes, Show simulator menu! | |
81 return | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
82 |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
83 test_switches_divemode2_2: |
0 | 84 btfss FLAG_apnoe_mode ; In Apnoe mode? |
85 bra test_switches_divemode2a; No! | |
86 | |
87 ; Yes, so quit Apnoe mode at once... | |
88 bcf divemode ; Clear Divemode flag... | |
89 bcf premenu ; clear premenu flag | |
90 return | |
91 | |
92 test_switches_divemode2a: | |
277
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
93 movlw d'1' |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
94 movwf menupos ; reset cursor in divemode menu |
46d1012d096a
Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
heinrichsweikamp
parents:
274
diff
changeset
|
95 test_switches_divemode2b: |
0 | 96 bsf menubit ; Enter Divemode-Menu! |
97 bcf premenu ; clear premenu flag | |
98 call PLED_clear_divemode_menu ; Clear dive mode menu area | |
99 call PLED_divemode_menu_mask_first ; Write Divemode menu1 mask | |
100 bcf display_set_simulator ; Clear Simulator-Menu flag | |
101 call PLED_divemenu_cursor ; show cursor | |
576 | 102 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! |
0 | 103 return |
104 | |
105 test_switches_divemode_menu: | |
337 | 106 btfsc uart_dump_screen ; Asked to dump screen contains ? |
107 call dump_screen ; Yes! | |
108 | |
0 | 109 btfsc switch_left |
110 bra test_switches_divemode_menu3 | |
111 btfss switch_right | |
112 return | |
113 | |
114 btfsc display_see_deco ; Is the Decoplan displayed? | |
115 bra divemenu_see_decoplan2 ; Yes, exit menu on left button press | |
116 | |
117 bcf switch_right ; Left button pressed | |
118 clrf timeout_counter3 ; timout_divemenu! | |
119 incf menupos,F | |
120 | |
121 ; 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 | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
123 btfsc display_set_gas ; Are we in the "Gaslist" menu? |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
124 movlw d'7' ; Yes, Number of entries for this menu+1 = 7 |
0 | 125 btfsc display_set_setpoint ; In SetPoint Menu? |
647 | 126 movlw d'6' ; Number of entries for this menu+1 = 6 |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
127 btfsc display_set_active ; De/Activate gases underwater menu is visible? |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
128 movlw d'7' ; Number of entries for this menu+1 = 7 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
129 btfsc display_set_xgas ; Are we in the Gas6 menu? |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
130 movlw d'7' ; Number of entries for this menu+1 = 7 |
352
544a96faa9f3
New "Quit sim" option in simulated dive mode, CF02 now allows more then 240seconds, Bugfix with runtime=1min in runtime simulator
Heinrichsweikamp
parents:
337
diff
changeset
|
131 btfsc display_set_simulator ; Are we in the simulator menu? |
544a96faa9f3
New "Quit sim" option in simulated dive mode, CF02 now allows more then 240seconds, Bugfix with runtime=1min in runtime simulator
Heinrichsweikamp
parents:
337
diff
changeset
|
132 movlw d'7' ; Number of entries for this menu+1 = 7 |
647 | 133 btfsc display_set_diluent ; Are we in the "Diluent" list? |
134 movlw d'6' ; Number of entries for this menu+1 = 6 | |
0 | 135 cpfseq menupos ; =limit? |
136 bra test_switches_divemode_menu1; No! | |
137 movlw d'1' ; Yes, reset to position 1! | |
138 movwf menupos | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
139 |
0 | 140 test_switches_divemode_menu1: |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
141 ; Finally, check if menuposition 3 should be skipped (No customview with function displayed) |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
142 |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
143 btfsc display_set_gas ; Are we in the "Gaslist", "SetPoint" or De/Activate gases menu? |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
144 bra test_switches_divemode_menu1a ; Skip test for sub menus |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
145 btfsc display_set_xgas ; Are we in the "Gaslist", "SetPoint" or De/Activate gases menu? |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
146 bra test_switches_divemode_menu1a ; Skip test for sub menus |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
147 btfsc display_set_active ; Are we in the "Gaslist", "SetPoint" or De/Activate gases menu? |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
148 bra test_switches_divemode_menu1a ; Skip test for sub menus |
647 | 149 btfsc display_set_diluent ; Are we in the "Gaslist", "SetPoint" or De/Activate gases menu? |
150 bra test_switches_divemode_menu1a ; Skip test for sub menus | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
151 |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
152 movlw d'3' |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
153 cpfseq menupos ; At position 3? |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
154 bra test_switches_divemode_menu1a ; No |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
155 btfss menu3_active ; Menu position 3 has functionality? |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
156 incf menupos,F ; No, +1, skip to menuos=4 |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
157 |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
158 test_switches_divemode_menu1a: |
0 | 159 call PLED_divemenu_cursor ; update cursor |
528
67ab3c028bc2
Show change gas depth below gaslist (in divemode)
heinrichsweikamp
parents:
525
diff
changeset
|
160 btfsc display_set_gas ; In Gaslist or Setpoint list menu? |
67ab3c028bc2
Show change gas depth below gaslist (in divemode)
heinrichsweikamp
parents:
525
diff
changeset
|
161 call PLED_show_change_depth ; Yes, show change depth for gas #menupos |
0 | 162 return |
163 | |
164 test_switches_divemode_menu3: | |
576 | 165 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! |
0 | 166 bsf menubit ; Enter Divemode-Menu! |
167 bcf premenu ; clear premenu flag | |
168 clrf timeout_counter3 | |
169 | |
170 btfsc display_set_gas ; Are we in the "Gaslist" or "SetPoint" menu? | |
171 bra divemenu_set_gas2 ; Yes, so set gas and exit menu | |
172 | |
173 btfsc display_see_deco ; Is the Decoplan displayed? | |
174 bra divemenu_see_decoplan2 ; Yes, exit menu on right button press | |
175 | |
176 btfsc display_set_xgas ; Are we in the "Set Gas" menu? | |
177 bra divemenu_set_xgas2 ; Yes, so configure gas or set menu and exit menu | |
178 | |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
179 btfsc display_set_active ; Are we in the "De/Activate gases menu?" menu? |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
180 bra divemenu_de_activate2 ; Yes, so toggle active flag |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
181 |
0 | 182 btfsc display_set_simulator ; Are we in the Divemode Simulator menu? |
183 goto divemode_menu_simulator2 ; Yes, so adjust depth or set and exit | |
184 | |
647 | 185 btfsc display_set_diluent ; Are we in the "Diluent" List? |
186 goto divemode_set_diluent2 ; Yes, so choose diluent and exit | |
187 | |
0 | 188 ; Options for Menu 1 |
189 dcfsnz menupos,F | |
73
2227459e8ef2
Exchanged Decoplan and Gaslist in dive mode menu
heinrichsweikamp
parents:
71
diff
changeset
|
190 bra divemenu_set_gas ; Set gas sub-menu |
2227459e8ef2
Exchanged Decoplan and Gaslist in dive mode menu
heinrichsweikamp
parents:
71
diff
changeset
|
191 dcfsnz menupos,F |
0 | 192 bra divemenu_see_decoplan ; display the full decoplan |
193 dcfsnz menupos,F | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
194 bra divemode_menu3 ; Customview-function |
0 | 195 dcfsnz menupos,F |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
196 bra divemode_toggle_brightness ; Toggle OLED-Brightness |
0 | 197 dcfsnz menupos,F |
169
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
198 bra timeout_divemenu2 ; Quit divemode menu |
119 | 199 bra timeout_divemenu2 ; Quit divemode menu |
0 | 200 |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
201 divemode_menu3: |
479
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
202 dcfsnz menupos3,W ; copy |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
203 bra toggle_stopwatch ; Toggle Stopwatch/Average register |
479
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
204 dcfsnz WREG,F |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
205 bra set_marker ; Set Marker |
479
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
206 dcfsnz WREG,F |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
207 bra divemode_menu3_nothing ; clock... |
479
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
208 dcfsnz WREG,F |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
209 bra divemode_menu3_nothing ; leading tissue... |
479
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
210 dcfsnz WREG,F |
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
211 bra divemode_menu3_nothing ; Average depth (not resetable) |
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
212 dcfsnz WREG,F |
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
213 bra divemode_menu3_nothing ; Graphs... |
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
214 dcfsnz WREG,F |
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
215 bra divemode_menu3_nothing ; END/EAD in divemode |
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
216 dcfsnz WREG,F |
525 | 217 bra divemode_menu3_nothing ; Future TTS... |
479
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
218 dcfsnz WREG,F |
9fc8feff27a5
Enable reset in cave bailout prediction, by using chrono average depth.
JeanDo
parents:
407
diff
changeset
|
219 bra toggle_stopwatch ; Cave bailout prediction. |
666 | 220 dcfsnz WREG,F |
221 bra divemode_menu3_nothing ; pSCR info | |
222 dcfsnz WREG,F | |
223 bra toggle_gradient_factors ; Toggle gradient factors | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
224 |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
225 divemode_menu3_nothing: |
0 | 226 bra timeout_divemenu2 ; Quit divemode menu |
227 | |
666 | 228 toggle_gradient_factors: |
229 btg use_aGF ; Toggle GF selector bit | |
230 bsf decoplan_invalid ; The decoplan needs to updated | |
231 clrf WREG | |
232 movff WREG,char_O_deco_status ; Restart decoplan computation mH | |
233 btfss use_aGF | |
234 bra toggle_gradient_factors2 ; Use aGf | |
235 ; Use normal GF | |
236 ; Load GF values into RAM | |
237 GETCUSTOM8 d'32' ; GF low | |
238 movff EEDATA,char_I_GF_Low_percentage | |
239 GETCUSTOM8 d'33' ; GF high | |
240 movff EEDATA,char_I_GF_High_percentage | |
241 bra timeout_divemenu2 ; quit menu! | |
242 toggle_gradient_factors2: ; Use aGf | |
243 ; Load GF values into RAM | |
244 GETCUSTOM8 d'67' ; aGF low | |
245 movff EEDATA,char_I_GF_Low_percentage | |
246 GETCUSTOM8 d'68' ; aGF high | |
247 movff EEDATA,char_I_GF_High_percentage | |
248 bra timeout_divemenu2 ; quit menu! | |
249 | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
250 set_marker: |
169
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
251 movlw d'6' ; Type of Alarm (Manual Marker) |
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
252 movwf AlarmType ; Copy to Alarm Register |
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
253 bsf event_occured ; Set Event Flag |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
254 bra timeout_divemenu2 ; quit menu! |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
255 |
0 | 256 toggle_stopwatch: |
111 | 257 bsf reset_average_depth ; Average Depth will be resetted in divemode.asm |
0 | 258 bra timeout_divemenu2 ; quit menu! |
259 | |
260 divemode_toggle_brightness: | |
261 read_int_eeprom d'90' ; Brightness offset? (Dim>0, Normal = 0) | |
262 tstfsz EEDATA ; Was dimmed? | |
263 bra divemode_toggle_brightness1 ; Yes... | |
264 | |
265 call PLED_brightness_low | |
266 movlw d'1' | |
267 movwf EEDATA ; Copy to EEDATA | |
268 write_int_eeprom d'90' ; Brightness offset? (Dim=1, Normal = 0) | |
269 bra divemode_toggle_brightness3 | |
270 | |
271 divemode_toggle_brightness1: | |
272 call PLED_brightness_full | |
273 movlw d'0' | |
274 movwf EEDATA ; Copy to EEDATA | |
275 write_int_eeprom d'90' ; Brightness offset? (Dim=1, Normal = 0) | |
276 | |
277 divemode_toggle_brightness3: | |
278 ; Now, redraw all outputs (All modes) | |
279 call PLED_active_gas_divemode ; Display gas, if required | |
280 call PLED_temp_divemode ; Displays temperature | |
281 call PLED_depth ; Displays new depth... | |
282 call PLED_max_pressure ; ...and max. depth | |
283 | |
284 bra timeout_divemenu2 ; quit menu! | |
285 | |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
286 divemenu_de_activate: |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
287 bsf display_set_active ; Set display flag |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
288 bcf display_set_xgas ; Clear Flag |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
289 call PLED_clear_divemode_menu ; Clear Menu |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
290 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
291 call PLED_de_activelist ; show (de)active gaslist |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
292 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
293 movlw d'1' |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
294 movwf menupos ; reset cursor |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
295 call PLED_divemenu_cursor ; update cursor |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
296 return |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
297 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
298 divemenu_de_activate2: ; Toggle active flag |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
299 dcfsnz menupos,F |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
300 bra divemenu_de_activate2_exit ; Exit, Quit, Abort |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
301 dcfsnz menupos,F |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
302 bra divemenu_de_activate2_g1 ; Toggle Gas1 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
303 dcfsnz menupos,F |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
304 bra divemenu_de_activate2_g2 ; Toggle Gas2 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
305 dcfsnz menupos,F |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
306 bra divemenu_de_activate2_g3 ; Toggle Gas3 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
307 dcfsnz menupos,F |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
308 bra divemenu_de_activate2_g4 ; Toggle Gas4 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
309 dcfsnz menupos,F |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
310 bra divemenu_de_activate2_g5 ; Toggle Gas5 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
311 return ; should never be here |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
312 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
313 divemenu_de_activate2_exit: |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
314 bra timeout_divemenu2 ; quit underwater menu! |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
315 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
316 divemenu_de_activate2_g1: |
290
4dbff2aa31ee
Hunting for refusing to ignore disabled gas in list...
JeanDo
parents:
286
diff
changeset
|
317 btg gaslist_active,0 ; Toggle flag |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
318 movlw d'2' |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
319 movwf menupos ; reset cursor |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
320 call PLED_de_activelist ; show (de)active gaslist |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
321 return |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
322 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
323 divemenu_de_activate2_g2: |
290
4dbff2aa31ee
Hunting for refusing to ignore disabled gas in list...
JeanDo
parents:
286
diff
changeset
|
324 btg gaslist_active,1 ; Toggle flag |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
325 movlw d'3' |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
326 movwf menupos ; reset cursor |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
327 call PLED_de_activelist ; show (de)active gaslist |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
328 return |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
329 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
330 divemenu_de_activate2_g3: |
290
4dbff2aa31ee
Hunting for refusing to ignore disabled gas in list...
JeanDo
parents:
286
diff
changeset
|
331 btg gaslist_active,2 ; Toggle flag |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
332 movlw d'4' |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
333 movwf menupos ; reset cursor |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
334 call PLED_de_activelist ; show (de)active gaslist |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
335 return |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
336 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
337 divemenu_de_activate2_g4: |
290
4dbff2aa31ee
Hunting for refusing to ignore disabled gas in list...
JeanDo
parents:
286
diff
changeset
|
338 btg gaslist_active,3 ; Toggle flag |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
339 movlw d'5' |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
340 movwf menupos ; reset cursor |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
341 call PLED_de_activelist ; show (de)active gaslist |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
342 return |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
343 |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
344 divemenu_de_activate2_g5: |
290
4dbff2aa31ee
Hunting for refusing to ignore disabled gas in list...
JeanDo
parents:
286
diff
changeset
|
345 btg gaslist_active,4 ; Toggle flag |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
346 movlw d'6' |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
347 movwf menupos ; reset cursor |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
348 call PLED_de_activelist ; show (de)active gaslist |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
349 return |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
350 |
0 | 351 divemode_set_xgas: ; Set the extra gas... |
352 bsf display_set_xgas ; Set Flag | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
353 bcf display_set_gas ; Clear Flag |
0 | 354 call PLED_clear_divemode_menu ; Clear Menu |
355 | |
356 movff char_I_O2_ratio, EEDATA ; Reset Gas6 to current gas | |
357 write_int_eeprom d'24' | |
358 movff char_I_He_ratio, EEDATA | |
359 write_int_eeprom d'25' | |
360 | |
361 call PLED_divemode_set_xgas ; Show mask | |
362 | |
363 movlw d'1' | |
364 movwf menupos ; reset cursor | |
365 call PLED_divemenu_cursor ; update cursor | |
366 return | |
367 | |
368 divemode_menu_simulator: | |
369 bsf menubit ; Enter Divemode-Menu! | |
370 bcf premenu ; clear premenu flag | |
576 | 371 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! |
104 | 372 bsf display_set_simulator ; Set Flag |
373 bsf menu3_active ; So "+1" is accessible at all times | |
0 | 374 call PLED_clear_divemode_menu ; Clear Menu |
375 call PLED_divemode_simulator_mask; Show mask | |
376 movlw d'1' | |
377 movwf menupos ; reset cursor | |
378 call PLED_divemenu_cursor ; update cursor | |
379 return | |
380 | |
381 divemode_menu_simulator2: | |
382 dcfsnz menupos,F | |
119 | 383 bra timeout_divemenu2 ; close underwater menu! |
0 | 384 dcfsnz menupos,F |
385 bra divemode_menu_simulator_p1 ; Adjust +1m | |
386 dcfsnz menupos,F | |
387 bra divemode_menu_simulator_m1 ; Adjust -1m | |
388 dcfsnz menupos,F | |
389 bra divemode_menu_simulator_p10 ; Adjust +10m | |
390 dcfsnz menupos,F | |
391 bra divemode_menu_simulator_m10 ; Adjust -10m | |
352
544a96faa9f3
New "Quit sim" option in simulated dive mode, CF02 now allows more then 240seconds, Bugfix with runtime=1min in runtime simulator
Heinrichsweikamp
parents:
337
diff
changeset
|
392 dcfsnz menupos,F |
544a96faa9f3
New "Quit sim" option in simulated dive mode, CF02 now allows more then 240seconds, Bugfix with runtime=1min in runtime simulator
Heinrichsweikamp
parents:
337
diff
changeset
|
393 bra divemode_menu_simulator_quit; Adjust to zero m |
0 | 394 bra timeout_divemenu2 ; quit underwater menu! |
395 | |
396 divemode_menu_simulator_common: | |
397 call PLED_divemode_simulator_mask ; Redraw Simualtor mask | |
398 | |
119 | 399 ; Check limits (130m and 0m) |
236 | 400 movlw LOW d'14000' ; Compare to 14bar=14000mbar (130m). |
401 subwf sim_pressure+0,W | |
119 | 402 movlw HIGH d'14000' |
236 | 403 subwfb sim_pressure+1,W |
404 bnc divemode_menu_simulator_common2 ; No-carry = borrow = not deeper | |
405 | |
119 | 406 ; Too deep, limit to 130m |
407 movlw LOW d'14000' | |
0 | 408 movwf sim_pressure+0 |
119 | 409 movlw HIGH d'14000' |
0 | 410 movwf sim_pressure+1 |
411 return | |
412 divemode_menu_simulator_common2: | |
236 | 413 movlw LOW d'1000' ; Compare to 1bar == 0m == 1000 mbar. |
414 subwf sim_pressure+0,W | |
0 | 415 movlw HIGH d'1000' |
236 | 416 subwfb sim_pressure+1,W |
417 btfsc STATUS,C ; No-carry = borrow = not deeper. | |
418 return ; Deeper than 0m == Ok. | |
419 | |
0 | 420 ; Too shallow, limit to 1m |
421 movlw LOW d'1000' | |
422 movwf sim_pressure+0 | |
423 movlw HIGH d'1000' | |
424 movwf sim_pressure+1 | |
425 return | |
426 | |
427 divemode_menu_simulator_m10: | |
428 movlw LOW d'1000' | |
429 subwf sim_pressure+0,F | |
430 movlw HIGH d'1000' | |
431 subwfb sim_pressure+1,F | |
432 movlw d'5' | |
433 movwf menupos ; reset cursor | |
434 bra divemode_menu_simulator_common | |
435 | |
436 divemode_menu_simulator_p10: | |
437 movlw LOW d'1000' | |
438 addwf sim_pressure+0,F | |
439 movlw HIGH d'1000' | |
440 addwfc sim_pressure+1,F | |
236 | 441 |
0 | 442 movlw d'4' |
443 movwf menupos ; reset cursor | |
444 bra divemode_menu_simulator_common | |
445 | |
352
544a96faa9f3
New "Quit sim" option in simulated dive mode, CF02 now allows more then 240seconds, Bugfix with runtime=1min in runtime simulator
Heinrichsweikamp
parents:
337
diff
changeset
|
446 divemode_menu_simulator_quit: |
544a96faa9f3
New "Quit sim" option in simulated dive mode, CF02 now allows more then 240seconds, Bugfix with runtime=1min in runtime simulator
Heinrichsweikamp
parents:
337
diff
changeset
|
447 movlw LOW d'1000' |
544a96faa9f3
New "Quit sim" option in simulated dive mode, CF02 now allows more then 240seconds, Bugfix with runtime=1min in runtime simulator
Heinrichsweikamp
parents:
337
diff
changeset
|
448 movwf sim_pressure+0 |
544a96faa9f3
New "Quit sim" option in simulated dive mode, CF02 now allows more then 240seconds, Bugfix with runtime=1min in runtime simulator
Heinrichsweikamp
parents:
337
diff
changeset
|
449 movlw HIGH d'1000' |
544a96faa9f3
New "Quit sim" option in simulated dive mode, CF02 now allows more then 240seconds, Bugfix with runtime=1min in runtime simulator
Heinrichsweikamp
parents:
337
diff
changeset
|
450 movwf sim_pressure+1 |
544a96faa9f3
New "Quit sim" option in simulated dive mode, CF02 now allows more then 240seconds, Bugfix with runtime=1min in runtime simulator
Heinrichsweikamp
parents:
337
diff
changeset
|
451 bra timeout_divemenu2 ; quit menu |
544a96faa9f3
New "Quit sim" option in simulated dive mode, CF02 now allows more then 240seconds, Bugfix with runtime=1min in runtime simulator
Heinrichsweikamp
parents:
337
diff
changeset
|
452 |
0 | 453 divemode_menu_simulator_p1: |
454 movlw d'100' | |
455 addwf sim_pressure+0,F | |
456 movlw d'0' | |
457 addwfc sim_pressure+1,F | |
458 movlw d'2' | |
459 movwf menupos ; reset cursor | |
460 bra divemode_menu_simulator_common | |
461 | |
462 divemode_menu_simulator_m1: | |
463 movlw d'100' | |
464 subwf sim_pressure+0,F | |
465 movlw d'0' | |
466 subwfb sim_pressure+1,F | |
467 movlw d'3' | |
468 movwf menupos ; reset cursor | |
469 bra divemode_menu_simulator_common | |
470 | |
471 divemenu_see_decoplan: | |
472 bsf display_see_deco ; set flag | |
64 | 473 call PLED_clear_divemode_menu ; Clear Menu |
0 | 474 |
64 | 475 bcf last_ceiling_gf_shown ; Clear flag |
124 | 476 clrf decoplan_page ; Starts on page 0 |
169
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
477 bra divemenu_see_decoplan2_1 |
0 | 478 |
479 divemenu_see_decoplan2: | |
124 | 480 incf decoplan_page,F |
64 | 481 btfsc last_ceiling_gf_shown ; last ceiling shown? |
482 bra divemenu_see_decoplan2_0 ; All done, clear and return | |
483 | |
169
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
484 divemenu_see_decoplan2_1: |
64 | 485 clrf timeout_counter3 ; Clear timeout Divemode menu |
169
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
486 call PLED_decoplan ; Display the new screen |
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
487 return |
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
488 |
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
489 divemenu_see_decoplan2_0: |
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
490 bcf display_see_deco ; clear flag |
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
491 bra timeout_divemenu2 ; quit menu! |
64 | 492 |
0 | 493 divemenu_set_xgas2: |
494 dcfsnz menupos,F | |
495 bra divemenu_set_xgas2_exit ; Use the gas6 configured and exit | |
496 dcfsnz menupos,F | |
497 bra divemenu_set_xgas2_o2plus ; Adjust O2+ | |
498 dcfsnz menupos,F | |
499 bra divemenu_set_xgas2_o2minus ; Adjust O2- | |
500 dcfsnz menupos,F | |
501 bra divemenu_set_xgas2_heplus ; Adjust He+ | |
502 dcfsnz menupos,F | |
503 bra divemenu_set_xgas2_heminus ; Adjust He- | |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
504 dcfsnz menupos,F |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
505 bra divemenu_de_activate ; Goto (De)active gases underwater list |
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
506 return ; should never be here |
0 | 507 |
508 divemenu_set_xgas2_heminus: | |
509 read_int_eeprom d'25' ; He value | |
510 movff EEDATA,lo | |
511 decf lo,F ; decrease He | |
512 movlw d'255' | |
513 cpfseq lo | |
514 bra divemenu_set_xgas2_heminus2 | |
515 incf lo,F ; limit to min=0 | |
516 divemenu_set_xgas2_heminus2: | |
517 movff lo, EEDATA | |
518 write_int_eeprom d'25' ; He Value | |
519 | |
520 call PLED_divemode_set_xgas ; Redraw menu | |
521 movlw d'5' | |
522 movwf menupos ; reset cursor | |
523 return | |
524 | |
525 divemenu_set_xgas2_heplus: | |
526 read_int_eeprom d'25' ; He value | |
527 movff EEDATA,lo | |
528 incf lo,F ; increase He | |
529 movlw d'101' | |
530 cpfseq lo | |
531 bra divemenu_set_xgas2_heplus2 | |
532 movlw d'4' ; O2 Limit | |
533 movwf lo | |
534 divemenu_set_xgas2_heplus2: ; test if O2+He>100... | |
535 read_int_eeprom d'24' ; O2 value | |
536 movf EEDATA,W | |
537 addwf lo,W ; add He value | |
538 movwf hi ; store in temp | |
539 movlw d'101' | |
540 cpfseq hi ; O2 and He > 100? | |
541 bra divemenu_set_xgas2_heplus3 ; No! | |
542 decf lo,F ; reduce He again = unchanged after operation | |
543 divemenu_set_xgas2_heplus3: ; save current value | |
544 movff lo, EEDATA | |
545 write_int_eeprom d'25' ; He Value | |
546 | |
547 call PLED_divemode_set_xgas ; Redraw menu | |
548 movlw d'4' | |
549 movwf menupos ; reset cursor | |
550 return | |
551 | |
552 divemenu_set_xgas2_o2minus: | |
553 read_int_eeprom d'24' ; O2 value | |
554 movff EEDATA,lo | |
555 decf lo,F ; decrease O2 | |
643 | 556 movlw d'0' |
0 | 557 cpfseq lo |
558 bra divemenu_set_xgas2_o2minus2 | |
643 | 559 read_int_eeprom d'25' ; Read He ratio |
560 movf EEDATA,W ; into WREG | |
561 sublw .100 ; 100% total... | |
562 movwf lo ; Set to Max. value | |
0 | 563 divemenu_set_xgas2_o2minus2: |
564 movff lo, EEDATA | |
565 write_int_eeprom d'24' ; O2 Value | |
566 | |
567 call PLED_divemode_set_xgas ; Redraw menu | |
568 movlw d'3' | |
569 movwf menupos ; reset cursor | |
570 return | |
571 | |
572 divemenu_set_xgas2_o2plus: | |
573 read_int_eeprom d'24' ; O2 value | |
574 movff EEDATA,lo | |
575 incf lo,F ; increase O2 | |
576 movlw d'101' | |
577 cpfseq lo | |
578 bra divemenu_set_xgas2_o2plus2 | |
579 movlw d'5' ; O2 limit | |
580 movwf lo | |
581 divemenu_set_xgas2_o2plus2: ; test if O2+He>100... | |
582 read_int_eeprom d'25' ; He value | |
583 movf EEDATA,W | |
584 addwf lo,W ; add O2 value | |
585 movwf hi ; store in temp | |
643 | 586 movlw d'100' |
587 cpfsgt hi ; O2 and He > 100? | |
0 | 588 bra divemenu_set_xgas2_o2plus3 ; No! |
589 decf lo,F ; reduce O2 again = unchanged after operation | |
590 divemenu_set_xgas2_o2plus3: ; save current value | |
591 movff lo, EEDATA | |
592 write_int_eeprom d'24' ; O2 Value | |
593 | |
594 call PLED_divemode_set_xgas ; Redraw menu | |
595 movlw d'2' | |
596 movwf menupos ; reset cursor | |
597 return | |
598 | |
599 divemenu_set_xgas2_exit: | |
600 read_int_eeprom d'25' ; Read He ratio | |
601 movff EEDATA,char_I_He_ratio ; And copy into hold register | |
602 | |
603 read_int_eeprom d'24' ; Read O2 ratio | |
604 movff EEDATA, char_I_O2_ratio ; O2 ratio | |
605 movff char_I_He_ratio, wait_temp ; copy into bank1 register | |
606 bsf STATUS,C ; | |
607 movlw d'100' ; 100% | |
608 subfwb wait_temp,W ; minus He | |
609 subfwb EEDATA,F ; minus O2 | |
610 movff EEDATA, char_I_N2_ratio ; = N2! | |
611 bsf manual_gas_changed ; set event flag | |
612 bsf event_occured ; set global event flag | |
665
259e4c1bf3c2
grey-out TTS and ceiling after gas change (until new plan is ready)
heinrichsweikamp
parents:
663
diff
changeset
|
613 bsf decoplan_invalid ; The decoplan needs to updated |
663
64194a3c8d5b
Restart building decoplan after gas change
heinrichsweikamp
parents:
647
diff
changeset
|
614 clrf WREG |
64194a3c8d5b
Restart building decoplan after gas change
heinrichsweikamp
parents:
647
diff
changeset
|
615 movff WREG,char_O_deco_status ; Restart decoplan computation mH |
99 | 616 bsf is_bailout ;=1: CC mode, but bailout active! |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
617 clrf lo ; clear Setpoint, PLED_const_ppO2_value now displayes "Bail" |
353
b5b030c1ae7e
Avoid spurious switch-depth stops with 3 or more gas.
JeanDo
parents:
337
diff
changeset
|
618 movff lo,char_I_const_ppO2 |
b5b030c1ae7e
Avoid spurious switch-depth stops with 3 or more gas.
JeanDo
parents:
337
diff
changeset
|
619 movlw 6 |
b5b030c1ae7e
Avoid spurious switch-depth stops with 3 or more gas.
JeanDo
parents:
337
diff
changeset
|
620 movff WREG,char_I_current_gas ; Current gas is Gas6 (manual setting). |
0 | 621 bra timeout_divemenu2 ; quit underwater menu! |
622 | |
623 divemenu_set_gas: | |
624 btfsc FLAG_const_ppO2_mode ; in ppO2 mode? | |
17 | 625 bra divemenu_set_setpoint ; Yes, display SetPoint list |
0 | 626 |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
627 divemenu_set_gas_2: |
0 | 628 bsf display_set_gas ; set flag |
629 call PLED_clear_divemode_menu ; Clear Menu | |
630 call PLED_gas_list ; Display all 5 gases | |
629
e755ed869a3b
2.51beta release - remove of MPLAB 8 workspace. Use of MPLAB X IDE recommended
heinrichsweikamp
parents:
598
diff
changeset
|
631 |
e755ed869a3b
2.51beta release - remove of MPLAB 8 workspace. Use of MPLAB X IDE recommended
heinrichsweikamp
parents:
598
diff
changeset
|
632 movlw d'1' ; Reset cursor |
e755ed869a3b
2.51beta release - remove of MPLAB 8 workspace. Use of MPLAB X IDE recommended
heinrichsweikamp
parents:
598
diff
changeset
|
633 btfsc better_gas_available ;=1: A better gas is available and a gas change is advised in divemode |
e755ed869a3b
2.51beta release - remove of MPLAB 8 workspace. Use of MPLAB X IDE recommended
heinrichsweikamp
parents:
598
diff
changeset
|
634 movf better_gas_number,W ; better gas 1-5 |
0 | 635 movwf menupos ; reset cursor |
636 call PLED_divemenu_cursor ; update cursor | |
528
67ab3c028bc2
Show change gas depth below gaslist (in divemode)
heinrichsweikamp
parents:
525
diff
changeset
|
637 call PLED_show_change_depth ; And show the first change depth |
0 | 638 return |
639 | |
640 divemenu_set_setpoint: | |
641 bsf display_set_setpoint ; set flag | |
642 bsf display_set_gas ; set flag | |
643 | |
644 call PLED_clear_divemode_menu ; Clear Menu | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
645 call PLED_splist_start ; Display SetPoints |
647 | 646 DISPLAYTEXT d'137' ; Bailout (as a sub-menu) |
647 DISPLAYTEXT d'232' ; Diluent (as a sub-menu) | |
0 | 648 movlw d'1' |
649 movwf menupos ; reset cursor | |
650 call PLED_divemenu_cursor ; update cursor | |
651 return | |
652 | |
653 | |
654 divemenu_set_gas2: | |
655 btfsc select_bailoutgas ; Are we in the Bailout list? | |
656 bra divemenu_set_gas2a ; Yes, choose gas | |
657 | |
658 btfss FLAG_const_ppO2_mode ; are we in ppO2 mode? | |
659 bra divemenu_set_gas2a ; no, choose gas | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
660 ; Yes, so select SP 1-3 |
3 | 661 bcf is_bailout ;=1: CC mode, but bailout active! |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
662 call PLED_show_ppO2_clear ; Clear ppO2 value |
3 | 663 |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
664 divemenu_set_gas1: |
525 | 665 movlw d'1' |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
666 cpfseq menupos ; At the "Bailout" position? |
647 | 667 bra divemenu_set_gas1b ; No, select SetPoint 1-3 or Diluent |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
668 bsf select_bailoutgas ; Set Flag |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
669 bcf display_set_setpoint ; Clear Flag |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
670 bra divemenu_set_gas_2 ; Configure the extra gas / Select Bailout |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
671 |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
672 divemenu_set_gas1b: |
647 | 673 movlw d'5' |
674 cpfseq menupos ; At the "Diluent" position? | |
675 bra divemenu_set_gas1c ; No, select SetPoint 1-3 | |
676 ; Choose Diluent from list | |
677 bcf display_set_setpoint ; Clear Flag | |
678 bcf display_set_gas ; Clear Flag | |
679 bsf display_set_diluent ; Set Flag | |
680 call PLED_clear_divemode_menu ; Clear Menu | |
681 call PLED_diluent_list ; Display all 5 diluents | |
682 movlw d'1' ; Reset cursor | |
683 movwf menupos ; reset cursor | |
684 call PLED_divemenu_cursor ; update cursor | |
685 return | |
686 | |
687 divemode_set_diluent2: ; Choose diluent #menupos | |
688 movff menupos,active_diluent ; 1-5 | |
689 bra divemenu_set_gas1d ; Continue here... | |
690 | |
691 divemenu_set_gas1c: | |
525 | 692 decf menupos,F ; Adjust 1-3 to 0-2... |
0 | 693 movlw d'35' ; offset in memory |
694 addwf menupos,W ; add SP number 0-2 | |
695 movwf EEADR | |
696 call read_eeprom ; Read SetPoint | |
697 movff EEDATA, char_I_const_ppO2 ; Use SetPoint | |
4 | 698 movff EEDATA, ppO2_setpoint_store ; Store also in this byte... |
274
a728b4a1b660
Setpoint changes stored in profile, EAD and END displayed in divemode (Customview 7)
heinrichsweikamp
parents:
236
diff
changeset
|
699 bsf setpoint_changed |
407 | 700 bsf event_occured ; set global event flag |
647 | 701 |
702 divemenu_set_gas1d: ; (Re-)Set Diluent | |
703 decf active_diluent,W ; 0-4 -> WREG mH | |
704 mullw .2 | |
705 movf PRODL,W | |
706 addlw d'97' | |
707 movwf EEADR | |
708 call read_eeprom ; Read He | |
709 movff EEDATA,char_I_He_ratio ; And copy into hold register | |
710 decf active_diluent,W ; 0-4 -> WREG | |
711 mullw .2 | |
712 movf PRODL,W | |
713 addlw d'96' | |
714 movwf EEADR | |
715 call read_eeprom ; Read O2 | |
716 movff EEDATA, char_I_O2_ratio ; O2 ratio | |
717 movff char_I_He_ratio, wait_temp ; copy into bank1 register | |
718 bsf STATUS,C ; Borrow bit | |
719 movlw d'100' ; 100% | |
720 subfwb wait_temp,W ; minus He | |
721 bsf STATUS,C ; Borrow bit | |
722 subfwb EEDATA,W ; minus O2 | |
723 movff WREG, char_I_N2_ratio ; = N2! | |
407 | 724 bra timeout_divemenu2 ; quit menu! |
0 | 725 |
726 divemenu_set_gas1a: | |
727 bcf display_set_setpoint ; Clear Display Flag | |
728 bsf stored_gas_changed ; set event flag | |
729 bsf event_occured ; set global event flag | |
665
259e4c1bf3c2
grey-out TTS and ceiling after gas change (until new plan is ready)
heinrichsweikamp
parents:
663
diff
changeset
|
730 bsf decoplan_invalid ; The decoplan needs to updated |
663
64194a3c8d5b
Restart building decoplan after gas change
heinrichsweikamp
parents:
647
diff
changeset
|
731 clrf WREG |
64194a3c8d5b
Restart building decoplan after gas change
heinrichsweikamp
parents:
647
diff
changeset
|
732 movff WREG,char_O_deco_status ; Restart decoplan computation mH |
0 | 733 bra timeout_divemenu2 ; quit menu! |
734 | |
735 divemenu_set_gas2a: | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
736 movlw d'6' |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
737 cpfseq menupos ; At the "Gas 6.." position? |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
738 bra divemenu_set_gas2b ; No, select Gas1-5 (Stored in Menupos) |
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
739 bra divemode_set_xgas ; Configure the extra gas |
353
b5b030c1ae7e
Avoid spurious switch-depth stops with 3 or more gas.
JeanDo
parents:
337
diff
changeset
|
740 |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
741 divemenu_set_gas2b: |
3 | 742 bsf is_bailout ;=1: CC mode, but bailout active! |
0 | 743 clrf lo ; clear Setpoint, PLED_const_ppO2_value now displayes "Bail" |
744 movff lo,char_I_const_ppO2 | |
745 | |
746 bcf display_set_gas ; clear flag | |
747 movff menupos,active_gas ; copy into active gas register | |
748 decf menupos,W ; # of selected gas (0-4) | |
749 mullw d'4' ; times 4... | |
750 movf PRODL,W ; | |
751 addlw d'7' ; +7 = address for He ratio | |
752 movwf EEADR | |
753 call read_eeprom ; Read He ratio | |
754 movff EEDATA,char_I_He_ratio ; And copy into hold register | |
755 | |
756 decf menupos,W ; # of selected gas (0-4) | |
757 mullw d'4' ; times 4... | |
758 movf PRODL,W ; | |
759 addlw d'6' ; +6 = address for O2 ratio | |
760 movwf EEADR | |
761 call read_eeprom ; Read O2 ratio | |
762 movff EEDATA, char_I_O2_ratio ; O2 ratio | |
763 movff char_I_He_ratio, wait_temp ; copy into bank1 register | |
764 bsf STATUS,C ; | |
765 movlw d'100' ; 100% | |
766 subfwb wait_temp,W ; minus He | |
767 subfwb EEDATA,F ; minus O2 | |
768 movff EEDATA, char_I_N2_ratio ; = N2! | |
769 bsf stored_gas_changed ; set event flag | |
770 bsf event_occured ; set global event flag | |
665
259e4c1bf3c2
grey-out TTS and ceiling after gas change (until new plan is ready)
heinrichsweikamp
parents:
663
diff
changeset
|
771 bsf decoplan_invalid ; The decoplan needs to updated |
663
64194a3c8d5b
Restart building decoplan after gas change
heinrichsweikamp
parents:
647
diff
changeset
|
772 clrf WREG |
64194a3c8d5b
Restart building decoplan after gas change
heinrichsweikamp
parents:
647
diff
changeset
|
773 movff WREG,char_O_deco_status ; Restart decoplan computation mH |
353
b5b030c1ae7e
Avoid spurious switch-depth stops with 3 or more gas.
JeanDo
parents:
337
diff
changeset
|
774 |
b5b030c1ae7e
Avoid spurious switch-depth stops with 3 or more gas.
JeanDo
parents:
337
diff
changeset
|
775 movff menupos,char_I_current_gas ; Inform deco code too. |
0 | 776 bra timeout_divemenu2 ; quit menu! |
777 | |
778 timeout_divemenu: | |
779 btfss menubit ; is the Dive mode menu displayed? | |
780 return ; No | |
781 | |
782 btfsc display_set_simulator ; Is the Simulator Mask active? | |
783 bra timeout_divemenu6 ; Yes, update Simulator mask | |
784 | |
785 btfss display_see_deco ; Is the decoplan active? | |
786 bra timeout_divemenu1 ; No, skip updating the decoplan | |
169
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
787 bra timeout_divemenu3 ; Yes... |
0 | 788 |
789 timeout_divemenu1: | |
790 incf timeout_counter3,F ; increase timeout_counter3 | |
791 GETCUSTOM8 d'10' ; loads timeout_divemenu into WREG | |
792 cpfsgt timeout_counter3 ; ... longer then timeout_divemenu | |
793 return ; No! | |
169
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
794 |
0 | 795 timeout_divemenu2: ; quit divemode menu |
796 ; Restore some outputs | |
124 | 797 clrf decoplan_page ; Page 0-1 of deco list |
119 | 798 call PLED_clear_divemode_menu; Clear dive mode menu |
115 | 799 |
800 btfsc FLAG_apnoe_mode ; Ignore in Apnoe mode | |
801 bra timeout_divemenu2a ; skip! | |
802 btfsc gauge_mode ; Ignore in Gauge mode | |
803 bra timeout_divemenu2a ; skip! | |
804 | |
280 | 805 bcf menubit |
0 | 806 btfsc dekostop_active |
66 | 807 call PLED_display_deko_mask ; clear nostop time, display decodata |
0 | 808 btfss dekostop_active |
66 | 809 call PLED_display_ndl_mask ; Clear deco data, display nostop time |
0 | 810 |
281 | 811 btfsc dekostop_active |
812 call PLED_display_deko ; Update deco display at once | |
813 btfss dekostop_active | |
814 call PLED_display_ndl ; Update NDL display at once | |
815 | |
598
f3735da18809
NEW: CF65: Show a safety stop for no-deco dives
heinrichsweikamp
parents:
576
diff
changeset
|
816 btfsc safety_stop_active |
f3735da18809
NEW: CF65: Show a safety stop for no-deco dives
heinrichsweikamp
parents:
576
diff
changeset
|
817 bcf safety_stop_active ; Clear flag to rebuild the safety stop |
f3735da18809
NEW: CF65: Show a safety stop for no-deco dives
heinrichsweikamp
parents:
576
diff
changeset
|
818 |
0 | 819 timeout_divemenu2a: |
820 bcf menubit | |
821 bcf premenu ; Yes, clear flags and menu, display dive time and mask again | |
66 | 822 call PLED_active_gas_divemode; Display gas, if required |
0 | 823 call PLED_divemode_mask ; Display mask |
824 call PLED_divemins ; Display (new) divetime! | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
87
diff
changeset
|
825 call customview_mask ; Redraw current customview mask |
0 | 826 clrf timeout_counter3 ; Also clear timeout |
827 bcf display_see_deco ; clear all display flags | |
828 bcf display_set_gas | |
829 bcf display_set_xgas | |
830 bcf display_set_setpoint | |
831 bcf display_set_simulator | |
219
b6dd54b3567c
NEW: De/Activate gases underwater (Gaslist -> Gas6.. -> Actve?)
heinrichsweikamp
parents:
169
diff
changeset
|
832 bcf display_set_active |
647 | 833 bcf display_set_diluent |
286 | 834 bcf menu3_active |
576 | 835 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! |
0 | 836 return |
169
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
837 |
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
838 ; Re-Draw current page of decoplan (may have more stops) |
0 | 839 timeout_divemenu3: |
169
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
840 movff char_O_deco_status,WREG ; Get last computation state (BANK safe) |
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
841 iorwf WREG ; Is it zero ? |
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
842 btfsc STATUS,Z |
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
843 call PLED_decoplan ; Yes: new data available. |
0 | 844 bra timeout_divemenu1 ; Check timeout |
169
e26f49674956
Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents:
124
diff
changeset
|
845 |
0 | 846 timeout_divemenu6: |
847 ; Update Simulator Mask | |
286 | 848 bsf menu3_active ; So "+1" is accessible at all times |
0 | 849 call PLED_divemode_simulator_mask; Show mask |
850 call PLED_divemenu_cursor ; update cursor | |
851 bra timeout_divemenu1 ; Check timeout |