Mercurial > public > mk2
annotate code_part1/OSTC_code_asm_part1/menu_gassetup.asm @ 303:9c39cedb662b
disabled live END and EAD (Need some debug work)
author | heinrichsweikamp |
---|---|
date | Sat, 30 Apr 2011 14:07:44 +0200 |
parents | eac799f69360 |
children | ed08d441ed26 |
rev | line source |
---|---|
0 | 1 |
2 ; OSTC - diving computer code | |
3 ; Copyright (C) 2008 HeinrichsWeikamp GbR | |
4 | |
5 ; This program is free software: you can redistribute it and/or modify | |
6 ; it under the terms of the GNU General Public License as published by | |
7 ; the Free Software Foundation, either version 3 of the License, or | |
8 ; (at your option) any later version. | |
9 | |
10 ; This program is distributed in the hope that it will be useful, | |
11 ; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 ; GNU General Public License for more details. | |
14 | |
15 ; You should have received a copy of the GNU General Public License | |
16 ; along with this program. If not, see <http://www.gnu.org/licenses/>. | |
17 | |
18 | |
19 ; Gas Setup menu | |
20 ; written by: Matthias Heinrichs, info@heinrichsweikamp.com | |
21 ; written: 10/08/07 | |
22 ; last updated: 080906 | |
23 ; known bugs: | |
24 ; ToDo: | |
25 | |
26 menu_gassetup: | |
27 movlw d'1' | |
28 movwf menupos | |
29 | |
30 menu_gassetup_prelist: | |
36
3c38ba950dfb
Gas Setup now sorts Gases for new Deco code
heinrichsweikamp
parents:
35
diff
changeset
|
31 call PLED_ClearScreen |
47 | 32 call gassetup_sort_gaslist ; Sorts Gaslist according to change depth |
0 | 33 clrf timeout_counter2 |
34 bcf sleepmode | |
35 bcf menubit2 | |
36 bcf menubit3 | |
37 call PLED_topline_box | |
38 WIN_INVERT .1 ; Init new Wordprocessor | |
39 DISPLAYTEXT .106 ; Gas List | |
40 WIN_INVERT .0 ; Init new Wordprocessor | |
41 clrf decodata+0 ; Here: # of gas 0-4 | |
42 clrf divemins+0 ; Here: # of Gas * 4 | |
43 movlw d'5' | |
44 movwf waitms_temp ; here: stores row for gas list | |
45 movlw d'2' | |
46 movwf wait_temp ; here: stores eeprom address for gas list | |
47 | |
48 ; Changed v1.44se | |
49 menu_gassetup_list: | |
50 WIN_LEFT .20 | |
51 movlw d'4' | |
52 addwf wait_temp,F ; Increase eeprom address for gas list | |
53 movlw d'30' | |
54 addwf waitms_temp,F ; Increase row | |
55 movf waitms_temp,W ; Load row into WREG | |
56 movff WREG,win_top | |
57 lfsr FSR2,letter | |
123 | 58 PUTC 'G' |
0 | 59 movff decodata+0,lo |
60 incf lo,F | |
61 bsf leftbind | |
62 output_99 | |
123 | 63 PUTC ':' |
0 | 64 |
121
e0f29e20bd24
Mix-type icons: check apnoe/gauge/CF#41, depth=0, and first gas. Changed colors.
JeanDo
parents:
115
diff
changeset
|
65 movf decodata+0,W |
e0f29e20bd24
Mix-type icons: check apnoe/gauge/CF#41, depth=0, and first gas. Changed colors.
JeanDo
parents:
115
diff
changeset
|
66 call PLED_grey_inactive_gas ; Sets Greyvalue for inactive gases |
0 | 67 call word_processor |
68 WIN_LEFT .40 | |
69 movf waitms_temp,W ; Load row into WREG | |
70 movff WREG,win_top | |
71 lfsr FSR2,letter | |
72 | |
73 movlw d'33' | |
74 movwf EEADR | |
75 call read_eeprom ; Get current startgas 1-5 # into EEDATA | |
76 decf EEDATA,W ; 0-4 | |
77 cpfseq decodata+0 ; =current displayed gas #? | |
78 bra menu_gassetup_Tx ; no, do not display * | |
123 | 79 PUTC '*' ; display * |
0 | 80 |
81 ; New v1.44se | |
82 menu_gassetup_Tx: | |
121
e0f29e20bd24
Mix-type icons: check apnoe/gauge/CF#41, depth=0, and first gas. Changed colors.
JeanDo
parents:
115
diff
changeset
|
83 movf decodata+0,W |
e0f29e20bd24
Mix-type icons: check apnoe/gauge/CF#41, depth=0, and first gas. Changed colors.
JeanDo
parents:
115
diff
changeset
|
84 call PLED_grey_inactive_gas ; Sets Greyvalue for inactive gases |
0 | 85 call word_processor |
86 | |
87 WIN_LEFT .48 | |
88 movf waitms_temp,W ; Load row into WREG | |
89 movff WREG,win_top | |
90 lfsr FSR2,letter | |
91 | |
92 movff wait_temp, EEADR ; Gas %He - Set address in internal EEPROM | |
93 incf EEADR,F ; Gas %He - Set address in internal EEPROM | |
94 call read_eeprom ; Read He value from EEPROM | |
95 movff EEDATA,lo ; Move EEDATA -> lo | |
96 movf lo,f ; Move lo -> f | |
97 movlw d'0' ; Move 0 -> WREG | |
98 cpfsgt lo ; He > 0? | |
99 bra menu_gassetup_Nx ; NO check o2 | |
100 | |
101 ; YES Write TX 15/55 | |
102 call gassetup_write_Tx | |
103 movff wait_temp, EEADR ; Gas %O2 - Set address in internal EEPROM | |
104 call read_eeprom ; O2 value | |
105 movff EEDATA,lo | |
106 output_8 | |
123 | 107 PUTC '/' |
0 | 108 incf EEADR,F ; Gas #hi: %He - Set address in internal EEPROM |
109 call read_eeprom ; He value | |
110 movff EEDATA,lo | |
111 output_8 | |
112 bra menu_gassetup_list0 | |
113 | |
114 ; New v1.44se | |
115 menu_gassetup_Nx: | |
116 movff wait_temp, EEADR ; Gas %O2 - Set address in internal EEPROM | |
117 call read_eeprom ; Read O2 value from EEPROM | |
118 movff EEDATA,lo ; Move EEDATA -> lo | |
119 movf lo,f ; Move lo -> f | |
120 movlw d'21' ; Move 21 -> WREG | |
121 cpfsgt lo ; o2 > 21% | |
122 bra menu_gassetup_Air ; NO AIR | |
123 movlw d'100' ; Move 100 -> WREG | |
124 cpfslt lo ; o2 < 100% | |
125 bra menu_gassetup_O2 ; NO write O2 | |
126 | |
127 ; YES Write NX 32 | |
128 call gassetup_write_Nx | |
129 output_8 | |
130 bra menu_gassetup_list0 | |
131 | |
132 ; New v1.44se | |
133 menu_gassetup_O2: | |
123 | 134 STRCAT "O2 " |
0 | 135 output_8 |
136 bra menu_gassetup_list0 | |
137 | |
138 ; New v1.44se | |
139 menu_gassetup_Air: | |
140 cpfseq lo ; o2 = 21% | |
141 call menu_gassetup_Err | |
142 | |
123 | 143 STRCAT "AIR " |
0 | 144 output_8 |
145 bra menu_gassetup_list0 | |
146 | |
147 ; New v1.44se | |
148 menu_gassetup_Err: | |
123 | 149 STRCAT "ERR " |
0 | 150 output_8 |
151 | |
152 ; Changed v1.44se | |
153 menu_gassetup_list0: | |
121
e0f29e20bd24
Mix-type icons: check apnoe/gauge/CF#41, depth=0, and first gas. Changed colors.
JeanDo
parents:
115
diff
changeset
|
154 movf decodata+0,W |
e0f29e20bd24
Mix-type icons: check apnoe/gauge/CF#41, depth=0, and first gas. Changed colors.
JeanDo
parents:
115
diff
changeset
|
155 call PLED_grey_inactive_gas ; Sets Greyvalue for inactive gases |
0 | 156 call word_processor |
157 | |
158 WIN_LEFT .105 | |
159 movf waitms_temp,W ; Load row into WREG | |
160 movff WREG,win_top | |
161 lfsr FSR2,letter | |
162 | |
123 | 163 STRCAT " in " |
0 | 164 movf decodata+0,W ; read current value |
165 addlw d'28' ; offset in memory | |
166 movwf EEADR | |
167 call read_eeprom ; Low-value | |
168 movff EEDATA,lo | |
169 output_8 | |
123 | 170 PUTC 'm' |
121
e0f29e20bd24
Mix-type icons: check apnoe/gauge/CF#41, depth=0, and first gas. Changed colors.
JeanDo
parents:
115
diff
changeset
|
171 movf decodata+0,W |
e0f29e20bd24
Mix-type icons: check apnoe/gauge/CF#41, depth=0, and first gas. Changed colors.
JeanDo
parents:
115
diff
changeset
|
172 call PLED_grey_inactive_gas ; Sets Greyvalue for inactive gases |
0 | 173 call word_processor |
174 | |
3 | 175 call PLED_standard_color |
0 | 176 |
177 incf decodata+0,F | |
178 movlw d'5' | |
179 cpfseq decodata+0 | |
180 goto menu_gassetup_list | |
181 | |
182 DISPLAYTEXT .11 ; Exit | |
183 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | |
184 call PLED_menu_cursor | |
185 | |
186 gassetup_list_loop: | |
187 call check_switches_logbook | |
188 | |
189 btfsc menubit3 | |
190 bra gassetup_list2 ; move cursor | |
191 | |
192 btfsc menubit2 | |
193 bra do_gassetup_list; call gas-specific submenu | |
194 | |
195 btfsc divemode | |
196 goto restart ; dive started! | |
197 | |
198 btfsc onesecupdate | |
199 call timeout_surfmode | |
200 | |
201 btfsc onesecupdate | |
202 call set_dive_modes | |
203 | |
204 bcf onesecupdate ; 1 sec. functions done | |
205 | |
206 btfsc sleepmode | |
207 bra exit_gassetup_list | |
208 | |
209 bra gassetup_list_loop | |
210 | |
211 gassetup_list2: | |
212 incf menupos,F | |
213 movlw d'7' | |
214 cpfseq menupos ; =7? | |
215 bra gassetup_list3 ; No | |
216 movlw d'1' | |
217 movwf menupos | |
218 | |
219 gassetup_list3: | |
220 clrf timeout_counter2 | |
221 call PLED_menu_cursor | |
222 | |
223 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | |
224 | |
225 bcf menubit3 ; clear flag | |
226 bra gassetup_list_loop | |
227 | |
228 exit_gassetup_list: ; exit... | |
229 movlw d'2' | |
230 movwf menupos | |
231 goto menu2 | |
232 | |
233 do_gassetup_list: | |
234 dcfsnz menupos,F | |
235 bra gassetup_list_edit_gas1 | |
236 dcfsnz menupos,F | |
237 bra gassetup_list_edit_gas2 | |
238 dcfsnz menupos,F | |
239 bra gassetup_list_edit_gas3 | |
240 dcfsnz menupos,F | |
241 bra gassetup_list_edit_gas4 | |
242 dcfsnz menupos,F | |
243 bra gassetup_list_edit_gas5 | |
244 bra exit_gassetup_list ; Exit List | |
245 | |
246 gassetup_list_edit_gas1: | |
247 movlw d'0' | |
248 movwf decodata+0 | |
249 movlw d'0' | |
250 movwf divemins+0 | |
251 bra menu_gassetup_page1 | |
252 | |
253 gassetup_list_edit_gas2: | |
254 movlw d'1' | |
255 movwf decodata+0 | |
256 movlw d'4' | |
257 movwf divemins+0 | |
258 bra menu_gassetup_page1 | |
259 | |
260 gassetup_list_edit_gas3: | |
261 movlw d'2' | |
262 movwf decodata+0 | |
263 movlw d'8' | |
264 movwf divemins+0 | |
265 bra menu_gassetup_page1 | |
266 | |
267 gassetup_list_edit_gas4: | |
268 movlw d'3' | |
269 movwf decodata+0 | |
270 movlw d'12' | |
271 movwf divemins+0 | |
272 bra menu_gassetup_page1 | |
273 | |
274 gassetup_list_edit_gas5: | |
275 movlw d'4' | |
276 movwf decodata+0 | |
277 movlw d'16' | |
278 movwf divemins+0 | |
279 bra menu_gassetup_page1 | |
280 | |
281 menu_gassetup_page1: | |
282 movlw d'1' | |
283 movwf menupos | |
284 bcf gas_setup_page2 ; Page 1 of gassetup | |
285 bcf menubit4 | |
286 bcf cursor | |
287 bcf sleepmode | |
288 bcf first_FA ; Here: =1: -, =0: + | |
289 | |
290 menu_gassetup0: | |
291 call PLED_ClearScreen | |
98
6f8e3a08011e
1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
50
diff
changeset
|
292 DISPLAYTEXT .147 ; More... |
0 | 293 DISPLAYTEXT .11 ; Exit |
294 | |
295 menu_gassetup1: | |
296 clrf timeout_counter2 | |
297 bcf menubit2 | |
298 bcf menubit3 | |
299 | |
300 rcall gassetup_title_bar2 ; Displays the title bar with the current Gas info | |
301 | |
302 WIN_LEFT .20 | |
199 | 303 WIN_TOP .65 |
123 | 304 STRCPY "O2: " |
0 | 305 |
306 movf divemins+0,W | |
307 addlw 0x06 | |
308 movwf EEADR | |
199 | 309 call read_eeprom ; O2 value |
0 | 310 movff EEDATA,lo |
311 output_8 | |
199 | 312 STRCAT_PRINT "% " |
0 | 313 |
314 ; Show MOD in m | |
199 | 315 WIN_LEFT .90 |
316 lfsr FSR2, letter | |
317 OUTPUTTEXTH .297 ; MOD: | |
318 | |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
319 rcall gassetup_get_mod ; compute MOD based on CF18 into lo:hi |
0 | 320 |
321 output_16 | |
199 | 322 STRCAT_PRINT "m " |
0 | 323 |
199 | 324 WIN_LEFT .20 |
0 | 325 WIN_TOP .95 |
123 | 326 STRCPY "He: " |
0 | 327 movf divemins+0,W |
328 addlw 0x07 | |
329 movwf EEADR | |
199 | 330 call read_eeprom ; He value |
0 | 331 movff EEDATA,lo |
332 output_8 | |
199 | 333 STRCAT_PRINT "% " |
105 | 334 |
335 ; Show END in m | |
199 | 336 lfsr FSR2, letter |
337 WIN_LEFT .90 | |
338 OUTPUTTEXTH .298 ; END: | |
303
9c39cedb662b
disabled live END and EAD (Need some debug work)
heinrichsweikamp
parents:
299
diff
changeset
|
339 |
9c39cedb662b
disabled live END and EAD (Need some debug work)
heinrichsweikamp
parents:
299
diff
changeset
|
340 rcall gassetup_get_mod ; compute MOD based on CF18 into lo:hi |
105 | 341 movlw d'10' |
342 addwf lo,F | |
343 movlw d'0' | |
199 | 344 addwfc hi,F ; lo:hi holding MOD+10m |
105 | 345 |
346 movf divemins+0,W | |
347 addlw 0x07 | |
348 movwf EEADR | |
199 | 349 call read_eeprom ; He value in % -> EEDATA |
105 | 350 movlw d'100' |
351 movwf xA+0 | |
199 | 352 movf EEDATA,W ; He value in % -> EEDATA |
353 subwf xA+0,F ; xA+0 = 100 - He Value in % | |
105 | 354 clrf xA+1 |
355 movff lo,xB+0 | |
199 | 356 movff hi,xB+1 ; Copy MOD+10 |
357 call mult16x16 ; xA*xB=xC | |
105 | 358 movff xC+0,xA+0 |
359 movff xC+1,xA+1 | |
360 movlw d'100' | |
361 movwf xB+0 | |
362 clrf xB+1 | |
199 | 363 call div16x16 ; xA/xB=xC with xA as remainder |
105 | 364 ; xC:2 = ((MOD+10) * 100 - HE Value in %) / 100 |
365 movlw d'10' | |
199 | 366 subwf xC+0,F ; Subtract 10m... |
105 | 367 movff xC+0,lo |
368 movlw d'0' | |
369 subwfb xC+1,F | |
370 movff xC+1,hi | |
371 output_16 | |
199 | 372 STRCAT_PRINT "m " |
0 | 373 |
199 | 374 WIN_LEFT .20 |
0 | 375 WIN_TOP .125 |
123 | 376 STRCPY "+/-: " |
0 | 377 movlw '+' |
378 btfsc first_FA | |
379 movlw '-' | |
380 movwf POSTINC2 | |
381 call word_processor | |
382 | |
383 WIN_TOP .155 | |
384 lfsr FSR2,letter | |
199 | 385 OUTPUTTEXT .89 ; Default: |
0 | 386 movf divemins+0,W |
387 addlw 0x04 | |
388 movwf EEADR | |
199 | 389 call read_eeprom ; Default O2 value |
0 | 390 movff EEDATA,lo |
391 output_8 | |
123 | 392 PUTC '/' |
0 | 393 movf divemins+0,W |
394 addlw 0x05 | |
395 movwf EEADR | |
199 | 396 call read_eeprom ; Default He value |
0 | 397 movff EEDATA,lo |
398 output_8 | |
123 | 399 STRCAT_PRINT " " |
0 | 400 |
401 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | |
402 call PLED_menu_cursor | |
403 | |
404 gassetup_loop: | |
405 call check_switches_logbook | |
406 | |
407 btfsc menubit3 | |
408 bra gassetup2 ; move cursor | |
409 | |
410 btfsc menubit2 | |
411 bra do_gassetup ; call submenu | |
412 | |
413 btfsc divemode | |
414 goto restart ; dive started! | |
415 | |
416 btfsc onesecupdate | |
417 call timeout_surfmode | |
418 | |
419 btfsc onesecupdate | |
420 call set_dive_modes | |
421 | |
422 bcf onesecupdate ; 1 sec. functions done | |
423 | |
424 btfsc sleepmode | |
425 bra exit_gassetup | |
426 | |
427 bra gassetup_loop | |
428 | |
429 gassetup2: | |
430 incf menupos,F | |
431 movlw d'7' | |
432 cpfseq menupos ; =7? | |
433 bra gassetup3 ; No | |
434 movlw d'1' | |
435 movwf menupos | |
436 | |
437 gassetup3: | |
438 | |
439 clrf timeout_counter2 | |
440 call PLED_menu_cursor | |
441 | |
442 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | |
443 | |
444 bcf menubit3 ; clear flag | |
445 bra gassetup_loop | |
446 | |
447 do_gassetup: | |
448 dcfsnz menupos,F | |
449 bra next_gas_page | |
450 dcfsnz menupos,F | |
451 bra adjust_o2 | |
452 dcfsnz menupos,F | |
453 bra adjust_he | |
454 dcfsnz menupos,F | |
455 bra toggle_plus_minus_gassetup | |
456 dcfsnz menupos,F | |
457 bra restore_gas | |
458 exit_gassetup: ; exit... | |
459 movff decodata+0,menupos | |
460 incf menupos,F | |
461 bra menu_gassetup_prelist | |
462 | |
463 toggle_plus_minus_gassetup: | |
464 btg first_FA | |
465 movlw d'4' | |
466 movwf menupos | |
467 bra menu_gassetup1 ; return | |
468 | |
469 next_gas: | |
470 movlw d'1' | |
471 movwf menupos | |
472 bra menu_gassetup0 ; incl. clear screen | |
473 | |
474 adjust_o2: | |
475 movf divemins+0,W ; read current value | |
476 addlw 0x06 | |
477 movwf EEADR | |
478 call read_eeprom ; Low-value | |
479 movff EEDATA,lo | |
480 | |
481 btfsc first_FA ; Minus? | |
482 bra adjust_o2_1 ; yes, minus! | |
483 | |
484 incf lo,F ; increase O2 | |
485 movlw d'101' | |
486 cpfseq lo | |
487 bra adjust_o2_2 | |
488 movlw d'4' ; LOWER O2 Limit | |
489 movwf lo | |
490 bra adjust_o2_2 | |
491 | |
492 adjust_o2_1: | |
493 decf lo,F ; decrease O2 | |
494 movlw d'3' | |
495 cpfseq lo | |
496 bra adjust_o2_2 | |
497 | |
498 movf divemins+0,W | |
499 addlw 0x07 | |
500 movwf EEADR | |
501 call read_eeprom ; read He value | |
502 | |
503 movlw d'100' | |
504 movwf lo | |
505 movf EEDATA,W ; He value | |
506 subwf lo,F ; lo=100% - He% | |
507 | |
508 adjust_o2_2: ; test if O2+He>100... | |
509 movf divemins+0,W | |
510 addlw 0x07 | |
511 movwf EEADR | |
512 call read_eeprom ; read He value | |
513 movf EEDATA,W ; He value | |
514 addwf lo,W ; add O2 value | |
515 movwf hi ; store in temp | |
516 movlw d'101' | |
517 cpfseq hi ; O2 and He > 100? | |
518 bra adjust_o2_3 ; No! | |
519 | |
520 movlw d'4' ; LOWER O2 Limit | |
521 movwf lo | |
522 | |
523 adjust_o2_3: | |
524 movf divemins+0,W ; save current value | |
525 addlw 0x06 | |
526 movwf EEADR | |
527 movff lo,EEDATA | |
528 call write_eeprom ; Low-value | |
529 | |
530 movlw d'2' | |
531 movwf menupos | |
532 bra menu_gassetup1 | |
533 | |
534 adjust_he: | |
535 movf divemins+0,W ; read current value | |
536 addlw 0x07 | |
537 movwf EEADR | |
538 call read_eeprom ; Low-value | |
539 movff EEDATA,lo | |
540 | |
541 btfsc first_FA ; Minus? | |
542 bra adjust_he_1 ; yes, minus! | |
543 | |
544 incf lo,F | |
545 movlw d'92' ; He limited to (useless) 90% | |
546 cpfseq lo | |
547 bra adjust_he_2 | |
548 clrf lo | |
549 bra adjust_he_2 | |
550 | |
551 adjust_he_1: | |
552 decf lo,F ; decrease He | |
553 movlw d'255' | |
554 cpfseq lo | |
555 bra adjust_he_2 | |
556 clrf lo | |
557 | |
558 adjust_he_2: ; test if O2+He>100... | |
559 movf divemins+0,W | |
560 addlw 0x06 | |
561 movwf EEADR | |
562 call read_eeprom ; read He value | |
563 movf EEDATA,W ; He value | |
564 addwf lo,W ; add O2 value | |
565 movwf hi ; store in temp | |
566 movlw d'101' | |
567 cpfseq hi ; O2 and He > 100? | |
568 bra adjust_he_3 ; No! | |
569 ; clrf lo ; Yes, clear He to zero | |
570 decf lo,F ; reduce He again = unchanged after operation | |
571 | |
572 adjust_he_3: | |
573 movf divemins+0,W ; save current value | |
574 addlw 0x07 | |
575 movwf EEADR | |
576 movff lo,EEDATA | |
577 call write_eeprom ; Low-value | |
578 | |
579 movlw d'3' | |
580 movwf menupos | |
581 bra menu_gassetup1 ; | |
582 | |
583 restore_gas: | |
584 movf divemins+0,W ; read Default value | |
585 addlw 0x04 | |
586 movwf EEADR | |
587 call read_eeprom ; Low-value | |
588 movff EEDATA,lo | |
589 movf divemins+0,W | |
590 addlw 0x05 | |
591 movwf EEADR | |
592 call read_eeprom ; High-value | |
593 movff EEDATA,hi | |
594 | |
595 movf divemins+0,W ; save Default value | |
596 addlw 0x06 | |
597 movwf EEADR | |
598 movff lo,EEDATA | |
599 call write_eeprom ; Low-value | |
600 movf divemins+0,W | |
601 addlw 0x07 | |
602 movwf EEADR | |
603 movff hi,EEDATA | |
604 call write_eeprom ; High-value | |
605 | |
606 movlw d'5' | |
607 movwf menupos | |
608 bra menu_gassetup1 ; | |
609 | |
610 | |
611 next_gas_page: | |
612 call PLED_ClearScreen | |
613 movlw d'1' | |
614 movwf menupos | |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
615 bcf first_FA ; Here: =1: -, =0: + |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
616 bcf second_FA ; Here: =1: Is first gas |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
617 DISPLAYTEXT .107 ; Depth +/- |
0 | 618 DISPLAYTEXT .11 ; Exit |
619 | |
620 next_gas_page1: | |
621 clrf timeout_counter2 | |
622 bcf menubit2 | |
623 bcf menubit3 | |
624 | |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
625 WIN_TOP .65 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
626 WIN_LEFT .20 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
627 lfsr FSR2,letter |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
628 OUTPUTTEXT .88 ; First Gas? |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
629 PUTC ' ' |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
630 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
631 movlw d'33' |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
632 movwf EEADR |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
633 call read_eeprom ; Get current startgas 1-5 # into EEDATA |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
634 decf EEDATA,W ; 0-4 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
635 cpfseq decodata+0 ; =current displayed gas #? |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
636 bra menu_firstgas0 ; no, display three spaces |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
637 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
638 OUTPUTTEXT .96 ; Yes |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
639 bsf second_FA ; Is first gas |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
640 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
641 movf decodata+0,W ; read current value |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
642 addlw d'28' ; offset in memory |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
643 movwf EEADR |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
644 call read_eeprom ; Low-value |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
645 clrf EEDATA ; Set change depth to zero |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
646 call write_eeprom ; save result in EEPROM |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
647 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
648 bra menu_firstgas1 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
649 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
650 menu_firstgas0: |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
651 bcf second_FA ; Is not first gas |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
652 STRCAT " " ; 3 spaces. |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
653 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
654 menu_firstgas1: |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
655 call word_processor |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
656 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
657 |
0 | 658 rcall gassetup_title_bar2 ; Displays the title bar with the current Gas info |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
659 WIN_TOP .125 |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
660 WIN_LEFT .20 |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
661 lfsr FSR2,letter |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
662 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
663 OUTPUTTEXT .108 ; Change: |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
664 |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
665 ; lo still holds change depth |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
666 bsf leftbind |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
667 output_8 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
668 STRCAT_PRINT "m " |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
669 |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
670 ; Show ppO2 after change depth |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
671 WIN_TOP .125 |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
672 WIN_LEFT .110 |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
673 lfsr FSR2,letter |
0 | 674 rcall gassetup_show_ppO2 ; Display the ppO2 of the change depth with the current gas |
675 | |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
676 movff xC+0,sub_a+0 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
677 movff xC+1,sub_a+1 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
678 GETCUSTOM8 d'46' ; color-code ppO2 warning [cBar] |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
679 movwf sub_b+0 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
680 clrf sub_b+1 |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
681 call sub16 ; sub_c = sub_a - sub_b |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
682 btfss neg_flag |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
683 bra gassetup_color_code_ppo2_1; too high -> Warning Color! |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
684 call PLED_standard_color |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
685 bra gassetup_color_code_ppo2_2 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
686 gassetup_color_code_ppo2_1: |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
687 call PLED_warnings_color |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
688 gassetup_color_code_ppo2_2: |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
689 call word_processor |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
690 call PLED_standard_color |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
691 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
692 WIN_TOP .95 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
693 WIN_LEFT .95 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
694 lfsr FSR2,letter |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
695 movlw '+' |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
696 btfsc first_FA |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
697 movlw '-' |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
698 movwf POSTINC2 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
699 call word_processor |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
700 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
701 ; Show MOD as "default" |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
702 WIN_TOP .155 |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
703 WIN_LEFT .20 |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
704 lfsr FSR2, letter |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
705 |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
706 OUTPUTTEXT .109 ; Default: |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
707 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
708 rcall gassetup_get_mod ; compute MOD based on CF18 into lo:hi |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
709 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
710 btfsc second_FA ; Is first gas? |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
711 clrf lo ; Yes, display 0m |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
712 btfsc second_FA ; Is first gas? |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
713 clrf hi ; Yes, display 0m |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
714 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
715 output_16 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
716 STRCAT_PRINT "m " |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
717 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
718 WIN_TOP .35 |
0 | 719 WIN_LEFT .20 |
720 lfsr FSR2,letter | |
721 OUTPUTTEXT .105 ; "Active Gas? " | |
722 | |
287 | 723 ; Active gas flags in BIT0:4 .... |
0 | 724 movff decodata+0,lo ; Gas 0-4 |
725 incf lo,F ; Gas 1-5 | |
726 | |
287 | 727 read_int_eeprom d'27' ; read flag register |
0 | 728 active_gas_display: |
729 rrcf EEDATA ; roll flags into carry | |
730 decfsz lo,F ; max. 5 times... | |
731 bra active_gas_display | |
732 | |
733 btfss STATUS,C ; test carry | |
734 bra active_gas_display_no | |
735 | |
736 OUTPUTTEXT .96 ; Yes | |
737 bra active_gas_display_end | |
738 | |
739 active_gas_display_no: | |
123 | 740 STRCAT " " ; three spaces instead of "Yes" |
0 | 741 |
742 active_gas_display_end: | |
743 call word_processor | |
744 | |
745 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | |
746 call PLED_menu_cursor | |
747 | |
748 next_gas_page_loop: | |
749 call check_switches_logbook | |
750 | |
751 btfsc menubit3 | |
752 bra next_gas_page2 ; move cursor | |
753 | |
754 btfsc menubit2 | |
755 bra do_next_gas_page ; call submenu | |
756 | |
757 btfsc divemode | |
758 goto restart ; dive started! | |
759 | |
760 btfsc onesecupdate | |
761 call timeout_surfmode | |
762 | |
763 btfsc onesecupdate | |
764 call set_dive_modes | |
765 | |
766 bcf onesecupdate ; 1 sec. functions done | |
767 | |
768 btfsc sleepmode | |
769 bra exit_gassetup | |
770 | |
771 bra next_gas_page_loop | |
772 | |
773 next_gas_page2: | |
774 incf menupos,F | |
775 | |
776 movlw d'7' | |
777 cpfseq menupos ; =7? | |
778 bra next_gas_page3 ; No | |
779 movlw d'1' | |
780 movwf menupos | |
781 | |
782 next_gas_page3: | |
783 clrf timeout_counter2 | |
784 call PLED_menu_cursor | |
785 | |
786 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | |
787 | |
788 bcf menubit3 ; clear flag | |
789 bra next_gas_page_loop | |
790 | |
791 do_next_gas_page: | |
792 dcfsnz menupos,F | |
793 bra toggle_active_gas | |
794 dcfsnz menupos,F | |
795 bra make_first_gas | |
796 dcfsnz menupos,F | |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
797 bra change_gas_depth_plus_minus |
0 | 798 dcfsnz menupos,F |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
799 bra change_gas_depth_apply |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
800 dcfsnz menupos,F |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
801 bra change_gas_depth_default |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
802 bra next_gas |
0 | 803 |
804 make_first_gas: | |
805 movff decodata+0,EEDATA ; current gas (0-4) into EEDATA | |
806 incf EEDATA,F ; current gas (1-5) into EEDATA | |
807 movlw d'33' | |
808 movwf EEADR | |
809 call write_eeprom ; store in internal EEPROM | |
115 | 810 |
811 ; Set First gas to "Active" | |
812 read_int_eeprom d'27' ; read flag register | |
813 movff decodata+0,lo ; selected gas 0-4 | |
814 incf lo,F | |
815 dcfsnz lo,F | |
816 bsf EEDATA,0 | |
817 dcfsnz lo,F | |
818 bsf EEDATA,1 | |
819 dcfsnz lo,F | |
820 bsf EEDATA,2 | |
821 dcfsnz lo,F | |
822 bsf EEDATA,3 | |
823 dcfsnz lo,F | |
824 bsf EEDATA,4 | |
825 write_int_eeprom d'27' ; write flag register | |
826 | |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
827 movlw d'2' |
0 | 828 movwf menupos |
829 bra next_gas_page1 | |
830 | |
831 toggle_active_gas: | |
832 read_int_eeprom d'27' ; read flag register | |
833 movff decodata+0,lo ; selected gas 0-4 | |
834 incf lo,F | |
835 dcfsnz lo,F | |
836 btg EEDATA,0 | |
837 dcfsnz lo,F | |
838 btg EEDATA,1 | |
839 dcfsnz lo,F | |
840 btg EEDATA,2 | |
841 dcfsnz lo,F | |
842 btg EEDATA,3 | |
843 dcfsnz lo,F | |
844 btg EEDATA,4 | |
845 write_int_eeprom d'27' ; write flag register | |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
846 movlw d'1' |
0 | 847 movwf menupos |
848 bra next_gas_page1 | |
849 | |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
850 change_gas_depth_apply: ; Apply +1 or -1m |
0 | 851 movf decodata+0,W ; read current value |
852 addlw d'28' ; offset in memory | |
853 movwf EEADR | |
854 call read_eeprom ; Low-value | |
855 movff EEDATA,lo | |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
856 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
857 btfsc first_FA ; Minus? |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
858 bra change_gas_depth_minus ; yes, minus! |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
859 ; +1m |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
860 |
0 | 861 incf lo,F ; increase depth |
862 movlw d'100' ; Change depth limit + 1 | |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
863 cpfslt lo ; >99? |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
864 clrf lo ; Yes, set to zero m |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
865 |
0 | 866 change_gas_depth_plus2: |
867 movff lo,EEDATA ; write result | |
868 call write_eeprom ; save result in EEPROM | |
869 movlw d'4' | |
870 movwf menupos | |
871 bra next_gas_page1 | |
872 | |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
873 change_gas_depth_minus: |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
874 ; -1m |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
875 decf lo,F ; decrease depth |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
876 btfsc lo,7 ; 255? |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
877 clrf lo ; Yes, stay at zero m |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
878 bra change_gas_depth_plus2 ; exit |
0 | 879 |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
880 change_gas_depth_plus_minus: |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
881 btg first_FA |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
882 movlw d'3' |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
883 movwf menupos |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
884 bra next_gas_page1 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
885 |
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
886 change_gas_depth_default: |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
887 rcall gassetup_get_mod ; compute MOD based on CF18 into lo:hi |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
888 |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
889 movlw d'99' |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
890 cpfslt lo |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
891 movwf lo ; limit to 99m |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
892 |
0 | 893 movf decodata+0,W ; read current value |
894 addlw d'28' ; offset in memory | |
895 movwf EEADR | |
896 call read_eeprom ; Low-value | |
897 movff lo,EEDATA ; write result | |
898 call write_eeprom ; save result in EEPROM | |
899 | |
900 movlw d'5' | |
901 movwf menupos | |
902 bra next_gas_page1 | |
903 | |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
904 |
0 | 905 ; Changed v1.44se |
906 gassetup_title_bar2: | |
907 call PLED_topline_box | |
908 WIN_INVERT .1 ; Init new Wordprocessor | |
909 WIN_TOP .2 | |
910 WIN_LEFT .0 | |
911 lfsr FSR2,letter | |
912 OUTPUTTEXT .95 ; Gas# | |
913 movff decodata+0,lo | |
914 incf lo,F | |
915 bsf leftbind | |
916 output_99 | |
123 | 917 STRCAT_PRINT ": " |
0 | 918 |
919 WIN_TOP .2 | |
920 WIN_LEFT .50 | |
921 lfsr FSR2,letter | |
922 | |
923 ;He check | |
924 movf divemins+0,W | |
925 addlw 0x07 | |
926 movwf EEADR | |
927 call read_eeprom ; He value | |
928 movff EEDATA,lo ; Move EEData -> lo | |
929 movf lo,f ; Move lo -> f | |
930 movlw d'0' ; Move 0 -> WREG | |
931 cpfsgt lo ; He > 0? | |
932 bra gassetup_title_bar3 ; NO check o2 | |
933 | |
934 ; YES Write TX 15/55 | |
935 call gassetup_write_Tx ; Write TX | |
936 movf divemins+0,W | |
937 addlw 0x06 | |
938 movwf EEADR | |
939 call read_eeprom ; O2 value | |
940 movff EEDATA,lo | |
941 output_8 ; Write O2 | |
123 | 942 PUTC '/' |
0 | 943 movf divemins+0,W |
944 addlw 0x07 | |
945 movwf EEADR | |
946 call read_eeprom ; He value | |
947 movff EEDATA,lo | |
948 output_8 ; Write He | |
949 bra gassetup_title_bar7 | |
950 | |
951 ; New v1.44se | |
952 gassetup_title_bar3: ; O2 Check | |
953 movf divemins+0,W | |
954 addlw 0x06 | |
955 movwf EEADR | |
956 call read_eeprom ; O2 value | |
957 movff EEDATA,lo | |
958 movf lo,f ; Move lo -> f | |
959 movlw d'21' ; Move 21 -> WREG | |
960 cpfseq lo ; o2 = 21 | |
961 cpfsgt lo ; o2 > 21% | |
962 bra gassetup_title_bar5 ; NO AIR | |
963 movlw d'100' ; Move 100 -> WREG | |
964 cpfslt lo ; o2 < 100% | |
965 bra gassetup_title_bar4 ; NO write O2 | |
966 | |
967 ; YES Write NX 32 | |
968 call gassetup_write_Nx | |
969 output_8 | |
970 bra gassetup_title_bar7 | |
971 | |
972 ; New v1.44se | |
973 gassetup_title_bar4: | |
123 | 974 STRCAT "O2 " |
0 | 975 output_8 |
976 bra gassetup_title_bar7 | |
977 | |
978 ; New v1.44se | |
979 gassetup_title_bar5: | |
980 cpfseq lo ; o2 = 21% | |
981 bra gassetup_title_bar6 | |
982 | |
123 | 983 STRCAT "AIR " |
0 | 984 output_8 |
985 bra gassetup_title_bar7 | |
986 | |
987 ; New v1.44se | |
988 gassetup_title_bar6: ; ERROR | |
123 | 989 STRCAT "ERR " |
0 | 990 output_8 |
991 bra gassetup_title_bar7 | |
992 | |
993 gassetup_title_bar7: | |
123 | 994 STRCAT " in " |
0 | 995 movf decodata+0,W ; read current value |
996 addlw d'28' ; offset in memory | |
997 movwf EEADR | |
998 call read_eeprom ; Low-value | |
999 movff EEDATA,lo | |
1000 output_8 | |
123 | 1001 STRCAT_PRINT "m " |
0 | 1002 |
1003 WIN_INVERT .0 ; Init new Wordprocessor | |
1004 return | |
1005 | |
1006 ; New v1.44se | |
1007 gassetup_write_Nx: | |
123 | 1008 STRCAT "NX " |
0 | 1009 return |
1010 | |
1011 ; New v1.44se | |
1012 gassetup_write_Tx: | |
123 | 1013 STRCAT "TX " |
0 | 1014 return |
1015 | |
1016 gassetup_show_ppO2: | |
1017 movf divemins+0,W | |
1018 addlw 0x06 | |
1019 movwf EEADR | |
1020 call read_eeprom ; O2 value | |
1021 movff EEDATA,hi | |
1022 | |
1023 movf decodata+0,W ; read current value | |
1024 addlw d'28' ; offset in memory | |
1025 movwf EEADR | |
1026 call read_eeprom ; Change depth in m | |
1027 movff EEDATA,lo | |
1028 movlw d'10' | |
1029 addwf lo,F ; Depth+10m=lo | |
1030 movf hi,W | |
1031 mulwf lo ; (Depth+10m)*O2 | |
1032 movff PRODL,xA+0 | |
1033 movff PRODH,xA+1 | |
1034 movlw d'10' | |
1035 movwf xB+0 | |
1036 clrf xB+1 | |
1037 call div16x16 ;xA/xB=xC with xA as remainder | |
1038 movff xC+0,lo ; ((Depth+10m)*O2)/10 = [0.01Bar] ppO2 | |
1039 movff xC+1,hi | |
1040 output_16dp d'3' | |
297
ceedf078b2d8
Gas Setup page 2 reworked, Texts 107, 108, 109,150, 149, 168, 42, 43, 53,54,55, 165 need update in french, spanish and german
Heinrichsweikamp
parents:
290
diff
changeset
|
1041 OUTPUTTEXT d'150' ; bar: |
35 | 1042 return |
1043 | |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1044 gassetup_get_mod: |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1045 GETCUSTOM8 .18 ; ppO2 warnvalue in WREG |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1046 mullw d'10' |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1047 movff PRODL,xA+0 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1048 movff PRODH,xA+1 ; ppO2 in [0.01Bar] * 10 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1049 movf divemins+0,W |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1050 addlw 0x06 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1051 movwf EEADR |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1052 call read_eeprom ; O2 value |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1053 movff EEDATA,xB+0 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1054 clrf xB+1 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1055 call div16x16 ; xA/xB=xC with xA as remainder |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1056 movlw d'10' |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1057 subwf xC+0,F ; Subtract 10m... |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1058 movff xC+0,lo |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1059 movlw d'0' |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1060 subwfb xC+1,F |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1061 movff xC+1,hi |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1062 return |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1063 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1064 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1065 |
227 | 1066 ;============================================================================= |
287 | 1067 ; Make sure first gas is marked active. |
1068 ; Note: - Gas are not soted anymore. | |
1069 ; - Gas with a depth>0 should not be forced active, or it is impossible | |
1070 ; to de-activate them. | |
1071 gassetup_sort_gaslist: | |
286 | 1072 |
287 | 1073 clrf EEADRH ; Select EEPROM lower page. |
1074 read_int_eeprom d'33' ; Get First gas (1-5) | |
1075 movff EEDATA,lo ; into register lo | |
286 | 1076 |
287 | 1077 read_int_eeprom d'27' ; Read selected gases |
286 | 1078 |
287 | 1079 dcfsnz lo,F ; If lo==1 |
1080 bsf EEDATA,0 ; Select Gas1 | |
1081 dcfsnz lo,F ; If lo==2 | |
1082 bsf EEDATA,1 ; Select Gas2 | |
1083 dcfsnz lo,F | |
1084 bsf EEDATA,2 | |
1085 dcfsnz lo,F | |
1086 bsf EEDATA,3 | |
1087 dcfsnz lo,F | |
1088 bsf EEDATA,4 | |
1089 | |
1090 ; Copy result to register: | |
290
4dbff2aa31ee
Hunting for refusing to ignore disabled gas in list...
JeanDo
parents:
287
diff
changeset
|
1091 movff EEDATA,gaslist_active |
287 | 1092 |
1093 ; And write to EEPROM too, to survive next reboot: | |
1094 write_int_eeprom d'27' | |
286 | 1095 |
1096 return | |
281 | 1097 |
287 | 1098 ;============================================================================= |
35 | 1099 ; EEPROM Locations of Gaslist |
1100 ; Gas1: | |
1101 ; O2 Default:4 | |
1102 ; He Default:5 | |
1103 ; O2 Current:6 | |
1104 ; He Current:7 | |
1105 ; Change: 28 | |
1106 ; Active: 27,0 | |
1107 | |
1108 ; Gas2: | |
1109 ; O2 Default:8 | |
1110 ; He Default:9 | |
1111 ; O2 Current:10 | |
1112 ; He Current:11 | |
1113 ; Change: 29 | |
1114 ; Active: 27,1 | |
1115 | |
1116 ; Gas3: | |
1117 ; O2 Default:12 | |
1118 ; He Default:13 | |
1119 ; O2 Current:14 | |
1120 ; He Current:15 | |
1121 ; Change: 30 | |
1122 ; Active: 27,2 | |
1123 | |
1124 ; Gas4: | |
1125 ; O2 Default:16 | |
1126 ; He Default:17 | |
1127 ; O2 Current:18 | |
1128 ; He Current:19 | |
1129 ; Change: 31 | |
1130 ; Active: 27,3 | |
1131 | |
1132 ; Gas5: | |
1133 ; O2 Default:20 | |
1134 ; He Default:21 | |
1135 ; O2 Current:22 | |
1136 ; He Current:23 | |
1137 ; Change: 32 | |
1138 ; Active: 27,4 |