annotate code_part1/OSTC_code_asm_part1/menu_gassetup.asm @ 771:3b69d3e23051

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