Mercurial > public > mk2
annotate code_part1/OSTC_code_asm_part1/menu_gassetup.asm @ 333:8b347e0eae26
1.91beta release started.
author | JeanDo |
---|---|
date | Thu, 12 May 2011 13:51:23 +0200 |
parents | ed08d441ed26 |
children | d36fe3651d56 |
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: | |
304 | 339 GETCUSTOM8 .18 ; ppO2 warnvalue in WREG |
340 mullw d'10' | |
341 movff PRODL,xA+0 | |
342 movff PRODH,xA+1 ; ppO2 in [0.01Bar] * 10 | |
343 movf divemins+0,W | |
344 addlw 0x06 | |
345 movwf EEADR | |
346 call read_eeprom ; O2 value | |
347 movff EEDATA,xB+0 | |
348 clrf xB+1 | |
349 call div16x16 ; xA/xB=xC with xA as remainder | |
350 movlw d'10' | |
351 subwf xC+0,F ; Subtract 10m... | |
352 movff xC+0,lo | |
353 movlw d'0' | |
354 subwfb xC+1,F | |
355 movff xC+1,hi ; lo:hi holding MOD in meters | |
105 | 356 movlw d'10' |
357 addwf lo,F | |
358 movlw d'0' | |
199 | 359 addwfc hi,F ; lo:hi holding MOD+10m |
105 | 360 |
361 movf divemins+0,W | |
362 addlw 0x07 | |
363 movwf EEADR | |
199 | 364 call read_eeprom ; He value in % -> EEDATA |
105 | 365 movlw d'100' |
366 movwf xA+0 | |
199 | 367 movf EEDATA,W ; He value in % -> EEDATA |
368 subwf xA+0,F ; xA+0 = 100 - He Value in % | |
105 | 369 clrf xA+1 |
370 movff lo,xB+0 | |
199 | 371 movff hi,xB+1 ; Copy MOD+10 |
372 call mult16x16 ; xA*xB=xC | |
105 | 373 movff xC+0,xA+0 |
374 movff xC+1,xA+1 | |
375 movlw d'100' | |
376 movwf xB+0 | |
377 clrf xB+1 | |
199 | 378 call div16x16 ; xA/xB=xC with xA as remainder |
105 | 379 ; xC:2 = ((MOD+10) * 100 - HE Value in %) / 100 |
380 movlw d'10' | |
199 | 381 subwf xC+0,F ; Subtract 10m... |
105 | 382 movff xC+0,lo |
383 movlw d'0' | |
384 subwfb xC+1,F | |
385 movff xC+1,hi | |
386 output_16 | |
199 | 387 STRCAT_PRINT "m " |
0 | 388 |
199 | 389 WIN_LEFT .20 |
0 | 390 WIN_TOP .125 |
123 | 391 STRCPY "+/-: " |
0 | 392 movlw '+' |
393 btfsc first_FA | |
394 movlw '-' | |
395 movwf POSTINC2 | |
396 call word_processor | |
397 | |
398 WIN_TOP .155 | |
399 lfsr FSR2,letter | |
199 | 400 OUTPUTTEXT .89 ; Default: |
0 | 401 movf divemins+0,W |
402 addlw 0x04 | |
403 movwf EEADR | |
199 | 404 call read_eeprom ; Default O2 value |
0 | 405 movff EEDATA,lo |
406 output_8 | |
123 | 407 PUTC '/' |
0 | 408 movf divemins+0,W |
409 addlw 0x05 | |
410 movwf EEADR | |
199 | 411 call read_eeprom ; Default He value |
0 | 412 movff EEDATA,lo |
413 output_8 | |
123 | 414 STRCAT_PRINT " " |
0 | 415 |
416 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | |
417 call PLED_menu_cursor | |
418 | |
419 gassetup_loop: | |
420 call check_switches_logbook | |
421 | |
422 btfsc menubit3 | |
423 bra gassetup2 ; move cursor | |
424 | |
425 btfsc menubit2 | |
426 bra do_gassetup ; call submenu | |
427 | |
428 btfsc divemode | |
429 goto restart ; dive started! | |
430 | |
431 btfsc onesecupdate | |
432 call timeout_surfmode | |
433 | |
434 btfsc onesecupdate | |
435 call set_dive_modes | |
436 | |
437 bcf onesecupdate ; 1 sec. functions done | |
438 | |
439 btfsc sleepmode | |
440 bra exit_gassetup | |
441 | |
442 bra gassetup_loop | |
443 | |
444 gassetup2: | |
445 incf menupos,F | |
446 movlw d'7' | |
447 cpfseq menupos ; =7? | |
448 bra gassetup3 ; No | |
449 movlw d'1' | |
450 movwf menupos | |
451 | |
452 gassetup3: | |
453 | |
454 clrf timeout_counter2 | |
455 call PLED_menu_cursor | |
456 | |
457 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | |
458 | |
459 bcf menubit3 ; clear flag | |
460 bra gassetup_loop | |
461 | |
462 do_gassetup: | |
463 dcfsnz menupos,F | |
464 bra next_gas_page | |
465 dcfsnz menupos,F | |
466 bra adjust_o2 | |
467 dcfsnz menupos,F | |
468 bra adjust_he | |
469 dcfsnz menupos,F | |
470 bra toggle_plus_minus_gassetup | |
471 dcfsnz menupos,F | |
472 bra restore_gas | |
473 exit_gassetup: ; exit... | |
474 movff decodata+0,menupos | |
475 incf menupos,F | |
476 bra menu_gassetup_prelist | |
477 | |
478 toggle_plus_minus_gassetup: | |
479 btg first_FA | |
480 movlw d'4' | |
481 movwf menupos | |
482 bra menu_gassetup1 ; return | |
483 | |
484 next_gas: | |
485 movlw d'1' | |
486 movwf menupos | |
487 bra menu_gassetup0 ; incl. clear screen | |
488 | |
489 adjust_o2: | |
490 movf divemins+0,W ; read current value | |
491 addlw 0x06 | |
492 movwf EEADR | |
493 call read_eeprom ; Low-value | |
494 movff EEDATA,lo | |
495 | |
496 btfsc first_FA ; Minus? | |
497 bra adjust_o2_1 ; yes, minus! | |
498 | |
499 incf lo,F ; increase O2 | |
500 movlw d'101' | |
501 cpfseq lo | |
502 bra adjust_o2_2 | |
503 movlw d'4' ; LOWER O2 Limit | |
504 movwf lo | |
505 bra adjust_o2_2 | |
506 | |
507 adjust_o2_1: | |
508 decf lo,F ; decrease O2 | |
509 movlw d'3' | |
510 cpfseq lo | |
511 bra adjust_o2_2 | |
512 | |
513 movf divemins+0,W | |
514 addlw 0x07 | |
515 movwf EEADR | |
516 call read_eeprom ; read He value | |
517 | |
518 movlw d'100' | |
519 movwf lo | |
520 movf EEDATA,W ; He value | |
521 subwf lo,F ; lo=100% - He% | |
522 | |
523 adjust_o2_2: ; test if O2+He>100... | |
524 movf divemins+0,W | |
525 addlw 0x07 | |
526 movwf EEADR | |
527 call read_eeprom ; read He value | |
528 movf EEDATA,W ; He value | |
529 addwf lo,W ; add O2 value | |
530 movwf hi ; store in temp | |
531 movlw d'101' | |
532 cpfseq hi ; O2 and He > 100? | |
533 bra adjust_o2_3 ; No! | |
534 | |
535 movlw d'4' ; LOWER O2 Limit | |
536 movwf lo | |
537 | |
538 adjust_o2_3: | |
539 movf divemins+0,W ; save current value | |
540 addlw 0x06 | |
541 movwf EEADR | |
542 movff lo,EEDATA | |
543 call write_eeprom ; Low-value | |
544 | |
545 movlw d'2' | |
546 movwf menupos | |
547 bra menu_gassetup1 | |
548 | |
549 adjust_he: | |
550 movf divemins+0,W ; read current value | |
551 addlw 0x07 | |
552 movwf EEADR | |
553 call read_eeprom ; Low-value | |
554 movff EEDATA,lo | |
555 | |
556 btfsc first_FA ; Minus? | |
557 bra adjust_he_1 ; yes, minus! | |
558 | |
559 incf lo,F | |
560 movlw d'92' ; He limited to (useless) 90% | |
561 cpfseq lo | |
562 bra adjust_he_2 | |
563 clrf lo | |
564 bra adjust_he_2 | |
565 | |
566 adjust_he_1: | |
567 decf lo,F ; decrease He | |
568 movlw d'255' | |
569 cpfseq lo | |
570 bra adjust_he_2 | |
571 clrf lo | |
572 | |
573 adjust_he_2: ; test if O2+He>100... | |
574 movf divemins+0,W | |
575 addlw 0x06 | |
576 movwf EEADR | |
577 call read_eeprom ; read He value | |
578 movf EEDATA,W ; He value | |
579 addwf lo,W ; add O2 value | |
580 movwf hi ; store in temp | |
581 movlw d'101' | |
582 cpfseq hi ; O2 and He > 100? | |
583 bra adjust_he_3 ; No! | |
584 ; clrf lo ; Yes, clear He to zero | |
585 decf lo,F ; reduce He again = unchanged after operation | |
586 | |
587 adjust_he_3: | |
588 movf divemins+0,W ; save current value | |
589 addlw 0x07 | |
590 movwf EEADR | |
591 movff lo,EEDATA | |
592 call write_eeprom ; Low-value | |
593 | |
594 movlw d'3' | |
595 movwf menupos | |
596 bra menu_gassetup1 ; | |
597 | |
598 restore_gas: | |
599 movf divemins+0,W ; read Default value | |
600 addlw 0x04 | |
601 movwf EEADR | |
602 call read_eeprom ; Low-value | |
603 movff EEDATA,lo | |
604 movf divemins+0,W | |
605 addlw 0x05 | |
606 movwf EEADR | |
607 call read_eeprom ; High-value | |
608 movff EEDATA,hi | |
609 | |
610 movf divemins+0,W ; save Default value | |
611 addlw 0x06 | |
612 movwf EEADR | |
613 movff lo,EEDATA | |
614 call write_eeprom ; Low-value | |
615 movf divemins+0,W | |
616 addlw 0x07 | |
617 movwf EEADR | |
618 movff hi,EEDATA | |
619 call write_eeprom ; High-value | |
620 | |
621 movlw d'5' | |
622 movwf menupos | |
623 bra menu_gassetup1 ; | |
624 | |
625 | |
626 next_gas_page: | |
627 call PLED_ClearScreen | |
628 movlw d'1' | |
629 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
|
630 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
|
631 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
|
632 DISPLAYTEXT .107 ; Depth +/- |
0 | 633 DISPLAYTEXT .11 ; Exit |
634 | |
635 next_gas_page1: | |
636 clrf timeout_counter2 | |
637 bcf menubit2 | |
638 bcf menubit3 | |
639 | |
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
|
640 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
|
641 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
|
642 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
|
643 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
|
644 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
|
645 |
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 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
|
647 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
|
648 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
|
649 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
|
650 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
|
651 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
|
652 |
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 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
|
654 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
|
655 |
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 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
|
657 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
|
658 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
|
659 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
|
660 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
|
661 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
|
662 |
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
|
663 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
|
664 |
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 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
|
666 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
|
667 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
|
668 |
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 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
|
670 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
|
671 |
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
|
672 |
0 | 673 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
|
674 WIN_TOP .125 |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
675 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
|
676 lfsr FSR2,letter |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
677 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
678 OUTPUTTEXT .108 ; Change: |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
679 |
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
|
680 ; 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
|
681 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
|
682 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
|
683 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
|
684 |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
685 ; 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
|
686 WIN_TOP .125 |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
687 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
|
688 lfsr FSR2,letter |
0 | 689 rcall gassetup_show_ppO2 ; Display the ppO2 of the change depth with the current gas |
690 | |
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
|
691 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
|
692 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
|
693 GETCUSTOM8 d'46' ; color-code ppO2 warning [cBar] |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
694 movwf sub_b+0 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
695 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
|
696 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
|
697 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
|
698 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
|
699 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
|
700 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
|
701 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
|
702 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
|
703 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
|
704 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
|
705 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
|
706 |
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
|
707 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
|
708 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
|
709 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
|
710 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
|
711 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
|
712 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
|
713 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
|
714 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
|
715 |
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 ; 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
|
717 WIN_TOP .155 |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
718 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
|
719 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
|
720 |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
721 OUTPUTTEXT .109 ; Default: |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
722 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
723 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
|
724 |
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
|
725 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
|
726 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
|
727 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
|
728 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
|
729 |
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
|
730 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
|
731 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
|
732 |
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
|
733 WIN_TOP .35 |
0 | 734 WIN_LEFT .20 |
735 lfsr FSR2,letter | |
736 OUTPUTTEXT .105 ; "Active Gas? " | |
737 | |
287 | 738 ; Active gas flags in BIT0:4 .... |
0 | 739 movff decodata+0,lo ; Gas 0-4 |
740 incf lo,F ; Gas 1-5 | |
741 | |
287 | 742 read_int_eeprom d'27' ; read flag register |
0 | 743 active_gas_display: |
744 rrcf EEDATA ; roll flags into carry | |
745 decfsz lo,F ; max. 5 times... | |
746 bra active_gas_display | |
747 | |
748 btfss STATUS,C ; test carry | |
749 bra active_gas_display_no | |
750 | |
751 OUTPUTTEXT .96 ; Yes | |
752 bra active_gas_display_end | |
753 | |
754 active_gas_display_no: | |
123 | 755 STRCAT " " ; three spaces instead of "Yes" |
0 | 756 |
757 active_gas_display_end: | |
758 call word_processor | |
759 | |
760 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | |
761 call PLED_menu_cursor | |
762 | |
763 next_gas_page_loop: | |
764 call check_switches_logbook | |
765 | |
766 btfsc menubit3 | |
767 bra next_gas_page2 ; move cursor | |
768 | |
769 btfsc menubit2 | |
770 bra do_next_gas_page ; call submenu | |
771 | |
772 btfsc divemode | |
773 goto restart ; dive started! | |
774 | |
775 btfsc onesecupdate | |
776 call timeout_surfmode | |
777 | |
778 btfsc onesecupdate | |
779 call set_dive_modes | |
780 | |
781 bcf onesecupdate ; 1 sec. functions done | |
782 | |
783 btfsc sleepmode | |
784 bra exit_gassetup | |
785 | |
786 bra next_gas_page_loop | |
787 | |
788 next_gas_page2: | |
789 incf menupos,F | |
790 | |
791 movlw d'7' | |
792 cpfseq menupos ; =7? | |
793 bra next_gas_page3 ; No | |
794 movlw d'1' | |
795 movwf menupos | |
796 | |
797 next_gas_page3: | |
798 clrf timeout_counter2 | |
799 call PLED_menu_cursor | |
800 | |
801 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | |
802 | |
803 bcf menubit3 ; clear flag | |
804 bra next_gas_page_loop | |
805 | |
806 do_next_gas_page: | |
807 dcfsnz menupos,F | |
808 bra toggle_active_gas | |
809 dcfsnz menupos,F | |
810 bra make_first_gas | |
811 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
|
812 bra change_gas_depth_plus_minus |
0 | 813 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
|
814 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
|
815 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
|
816 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
|
817 bra next_gas |
0 | 818 |
819 make_first_gas: | |
820 movff decodata+0,EEDATA ; current gas (0-4) into EEDATA | |
821 incf EEDATA,F ; current gas (1-5) into EEDATA | |
822 movlw d'33' | |
823 movwf EEADR | |
824 call write_eeprom ; store in internal EEPROM | |
115 | 825 |
826 ; Set First gas to "Active" | |
827 read_int_eeprom d'27' ; read flag register | |
828 movff decodata+0,lo ; selected gas 0-4 | |
829 incf lo,F | |
830 dcfsnz lo,F | |
831 bsf EEDATA,0 | |
832 dcfsnz lo,F | |
833 bsf EEDATA,1 | |
834 dcfsnz lo,F | |
835 bsf EEDATA,2 | |
836 dcfsnz lo,F | |
837 bsf EEDATA,3 | |
838 dcfsnz lo,F | |
839 bsf EEDATA,4 | |
840 write_int_eeprom d'27' ; write flag register | |
841 | |
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
|
842 movlw d'2' |
0 | 843 movwf menupos |
844 bra next_gas_page1 | |
845 | |
846 toggle_active_gas: | |
847 read_int_eeprom d'27' ; read flag register | |
848 movff decodata+0,lo ; selected gas 0-4 | |
849 incf lo,F | |
850 dcfsnz lo,F | |
851 btg EEDATA,0 | |
852 dcfsnz lo,F | |
853 btg EEDATA,1 | |
854 dcfsnz lo,F | |
855 btg EEDATA,2 | |
856 dcfsnz lo,F | |
857 btg EEDATA,3 | |
858 dcfsnz lo,F | |
859 btg EEDATA,4 | |
860 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
|
861 movlw d'1' |
0 | 862 movwf menupos |
863 bra next_gas_page1 | |
864 | |
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
|
865 change_gas_depth_apply: ; Apply +1 or -1m |
0 | 866 movf decodata+0,W ; read current value |
867 addlw d'28' ; offset in memory | |
868 movwf EEADR | |
869 call read_eeprom ; Low-value | |
870 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
|
871 |
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
|
872 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
|
873 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
|
874 ; +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
|
875 |
0 | 876 incf lo,F ; increase depth |
877 movlw d'100' ; Change depth limit + 1 | |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
878 cpfslt lo ; >99? |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
879 clrf lo ; Yes, set to zero m |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
880 |
0 | 881 change_gas_depth_plus2: |
882 movff lo,EEDATA ; write result | |
883 call write_eeprom ; save result in EEPROM | |
884 movlw d'4' | |
885 movwf menupos | |
886 bra next_gas_page1 | |
887 | |
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 change_gas_depth_minus: |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
889 ; -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
|
890 decf lo,F ; decrease depth |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
891 btfsc lo,7 ; 255? |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
892 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
|
893 bra change_gas_depth_plus2 ; exit |
0 | 894 |
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
|
895 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
|
896 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
|
897 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
|
898 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
|
899 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
|
900 |
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
|
901 change_gas_depth_default: |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
902 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
|
903 |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
904 movlw d'99' |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
905 cpfslt lo |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
906 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
|
907 |
0 | 908 movf decodata+0,W ; read current value |
909 addlw d'28' ; offset in memory | |
910 movwf EEADR | |
911 call read_eeprom ; Low-value | |
912 movff lo,EEDATA ; write result | |
913 call write_eeprom ; save result in EEPROM | |
914 | |
915 movlw d'5' | |
916 movwf menupos | |
917 bra next_gas_page1 | |
918 | |
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
|
919 |
0 | 920 ; Changed v1.44se |
921 gassetup_title_bar2: | |
922 call PLED_topline_box | |
923 WIN_INVERT .1 ; Init new Wordprocessor | |
924 WIN_TOP .2 | |
925 WIN_LEFT .0 | |
926 lfsr FSR2,letter | |
927 OUTPUTTEXT .95 ; Gas# | |
928 movff decodata+0,lo | |
929 incf lo,F | |
930 bsf leftbind | |
931 output_99 | |
123 | 932 STRCAT_PRINT ": " |
0 | 933 |
934 WIN_TOP .2 | |
935 WIN_LEFT .50 | |
936 lfsr FSR2,letter | |
937 | |
938 ;He check | |
939 movf divemins+0,W | |
940 addlw 0x07 | |
941 movwf EEADR | |
942 call read_eeprom ; He value | |
943 movff EEDATA,lo ; Move EEData -> lo | |
944 movf lo,f ; Move lo -> f | |
945 movlw d'0' ; Move 0 -> WREG | |
946 cpfsgt lo ; He > 0? | |
947 bra gassetup_title_bar3 ; NO check o2 | |
948 | |
949 ; YES Write TX 15/55 | |
950 call gassetup_write_Tx ; Write TX | |
951 movf divemins+0,W | |
952 addlw 0x06 | |
953 movwf EEADR | |
954 call read_eeprom ; O2 value | |
955 movff EEDATA,lo | |
956 output_8 ; Write O2 | |
123 | 957 PUTC '/' |
0 | 958 movf divemins+0,W |
959 addlw 0x07 | |
960 movwf EEADR | |
961 call read_eeprom ; He value | |
962 movff EEDATA,lo | |
963 output_8 ; Write He | |
964 bra gassetup_title_bar7 | |
965 | |
966 ; New v1.44se | |
967 gassetup_title_bar3: ; O2 Check | |
968 movf divemins+0,W | |
969 addlw 0x06 | |
970 movwf EEADR | |
971 call read_eeprom ; O2 value | |
972 movff EEDATA,lo | |
973 movf lo,f ; Move lo -> f | |
974 movlw d'21' ; Move 21 -> WREG | |
975 cpfseq lo ; o2 = 21 | |
976 cpfsgt lo ; o2 > 21% | |
977 bra gassetup_title_bar5 ; NO AIR | |
978 movlw d'100' ; Move 100 -> WREG | |
979 cpfslt lo ; o2 < 100% | |
980 bra gassetup_title_bar4 ; NO write O2 | |
981 | |
982 ; YES Write NX 32 | |
983 call gassetup_write_Nx | |
984 output_8 | |
985 bra gassetup_title_bar7 | |
986 | |
987 ; New v1.44se | |
988 gassetup_title_bar4: | |
123 | 989 STRCAT "O2 " |
0 | 990 output_8 |
991 bra gassetup_title_bar7 | |
992 | |
993 ; New v1.44se | |
994 gassetup_title_bar5: | |
995 cpfseq lo ; o2 = 21% | |
996 bra gassetup_title_bar6 | |
997 | |
123 | 998 STRCAT "AIR " |
0 | 999 output_8 |
1000 bra gassetup_title_bar7 | |
1001 | |
1002 ; New v1.44se | |
1003 gassetup_title_bar6: ; ERROR | |
123 | 1004 STRCAT "ERR " |
0 | 1005 output_8 |
1006 bra gassetup_title_bar7 | |
1007 | |
1008 gassetup_title_bar7: | |
123 | 1009 STRCAT " in " |
0 | 1010 movf decodata+0,W ; read current value |
1011 addlw d'28' ; offset in memory | |
1012 movwf EEADR | |
1013 call read_eeprom ; Low-value | |
1014 movff EEDATA,lo | |
1015 output_8 | |
123 | 1016 STRCAT_PRINT "m " |
0 | 1017 |
1018 WIN_INVERT .0 ; Init new Wordprocessor | |
1019 return | |
1020 | |
1021 ; New v1.44se | |
1022 gassetup_write_Nx: | |
123 | 1023 STRCAT "NX " |
0 | 1024 return |
1025 | |
1026 ; New v1.44se | |
1027 gassetup_write_Tx: | |
123 | 1028 STRCAT "TX " |
0 | 1029 return |
1030 | |
1031 gassetup_show_ppO2: | |
1032 movf divemins+0,W | |
1033 addlw 0x06 | |
1034 movwf EEADR | |
1035 call read_eeprom ; O2 value | |
1036 movff EEDATA,hi | |
1037 | |
1038 movf decodata+0,W ; read current value | |
1039 addlw d'28' ; offset in memory | |
1040 movwf EEADR | |
1041 call read_eeprom ; Change depth in m | |
1042 movff EEDATA,lo | |
1043 movlw d'10' | |
1044 addwf lo,F ; Depth+10m=lo | |
1045 movf hi,W | |
1046 mulwf lo ; (Depth+10m)*O2 | |
1047 movff PRODL,xA+0 | |
1048 movff PRODH,xA+1 | |
1049 movlw d'10' | |
1050 movwf xB+0 | |
1051 clrf xB+1 | |
1052 call div16x16 ;xA/xB=xC with xA as remainder | |
1053 movff xC+0,lo ; ((Depth+10m)*O2)/10 = [0.01Bar] ppO2 | |
1054 movff xC+1,hi | |
1055 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
|
1056 OUTPUTTEXT d'150' ; bar: |
35 | 1057 return |
1058 | |
299
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1059 gassetup_get_mod: |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1060 GETCUSTOM8 .18 ; ppO2 warnvalue in WREG |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1061 mullw d'10' |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1062 movff PRODL,xA+0 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1063 movff PRODH,xA+1 ; ppO2 in [0.01Bar] * 10 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1064 movf divemins+0,W |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1065 addlw 0x06 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1066 movwf EEADR |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1067 call read_eeprom ; O2 value |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1068 movff EEDATA,xB+0 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1069 clrf xB+1 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1070 call div16x16 ; xA/xB=xC with xA as remainder |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1071 movlw d'10' |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1072 subwf xC+0,F ; Subtract 10m... |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1073 movff xC+0,lo |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1074 movlw d'0' |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1075 subwfb xC+1,F |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1076 movff xC+1,hi |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1077 return |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1078 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1079 |
eac799f69360
some cleanup, french and german texts updated
heinrichsweikamp
parents:
297
diff
changeset
|
1080 |
227 | 1081 ;============================================================================= |
287 | 1082 ; Make sure first gas is marked active. |
1083 ; Note: - Gas are not soted anymore. | |
1084 ; - Gas with a depth>0 should not be forced active, or it is impossible | |
1085 ; to de-activate them. | |
1086 gassetup_sort_gaslist: | |
286 | 1087 |
287 | 1088 clrf EEADRH ; Select EEPROM lower page. |
1089 read_int_eeprom d'33' ; Get First gas (1-5) | |
1090 movff EEDATA,lo ; into register lo | |
286 | 1091 |
287 | 1092 read_int_eeprom d'27' ; Read selected gases |
286 | 1093 |
287 | 1094 dcfsnz lo,F ; If lo==1 |
1095 bsf EEDATA,0 ; Select Gas1 | |
1096 dcfsnz lo,F ; If lo==2 | |
1097 bsf EEDATA,1 ; Select Gas2 | |
1098 dcfsnz lo,F | |
1099 bsf EEDATA,2 | |
1100 dcfsnz lo,F | |
1101 bsf EEDATA,3 | |
1102 dcfsnz lo,F | |
1103 bsf EEDATA,4 | |
1104 | |
1105 ; Copy result to register: | |
290
4dbff2aa31ee
Hunting for refusing to ignore disabled gas in list...
JeanDo
parents:
287
diff
changeset
|
1106 movff EEDATA,gaslist_active |
287 | 1107 |
1108 ; And write to EEPROM too, to survive next reboot: | |
1109 write_int_eeprom d'27' | |
286 | 1110 |
1111 return | |
281 | 1112 |
287 | 1113 ;============================================================================= |
35 | 1114 ; EEPROM Locations of Gaslist |
1115 ; Gas1: | |
1116 ; O2 Default:4 | |
1117 ; He Default:5 | |
1118 ; O2 Current:6 | |
1119 ; He Current:7 | |
1120 ; Change: 28 | |
1121 ; Active: 27,0 | |
1122 | |
1123 ; Gas2: | |
1124 ; O2 Default:8 | |
1125 ; He Default:9 | |
1126 ; O2 Current:10 | |
1127 ; He Current:11 | |
1128 ; Change: 29 | |
1129 ; Active: 27,1 | |
1130 | |
1131 ; Gas3: | |
1132 ; O2 Default:12 | |
1133 ; He Default:13 | |
1134 ; O2 Current:14 | |
1135 ; He Current:15 | |
1136 ; Change: 30 | |
1137 ; Active: 27,2 | |
1138 | |
1139 ; Gas4: | |
1140 ; O2 Default:16 | |
1141 ; He Default:17 | |
1142 ; O2 Current:18 | |
1143 ; He Current:19 | |
1144 ; Change: 31 | |
1145 ; Active: 27,3 | |
1146 | |
1147 ; Gas5: | |
1148 ; O2 Default:20 | |
1149 ; He Default:21 | |
1150 ; O2 Current:22 | |
1151 ; He Current:23 | |
1152 ; Change: 32 | |
1153 ; Active: 27,4 |