Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/customview.asm @ 759:ae830d5e63ef
Start on new decogas display
author | heinrichsweikamp |
---|---|
date | Sat, 30 Nov 2013 20:41:43 +0100 |
parents | 3096294bb06e |
children | 43ef5a003df7 |
comparison
equal
deleted
inserted
replaced
758:3096294bb06e | 759:ae830d5e63ef |
---|---|
101 bra customview_1sec_cave_bailout; Show Cave conso prediction. | 101 bra customview_1sec_cave_bailout; Show Cave conso prediction. |
102 dcfsnz WREG,F | 102 dcfsnz WREG,F |
103 bra customview_1sec_pSCR_ppO2 ; Show/Update pSCR ppO2 | 103 bra customview_1sec_pSCR_ppO2 ; Show/Update pSCR ppO2 |
104 dcfsnz WREG,F | 104 dcfsnz WREG,F |
105 bra customview_1sec_show_change_gf; Show and/or change GF values | 105 bra customview_1sec_show_change_gf; Show and/or change GF values |
106 dcfsnz WREG,F | |
107 bra customview_1sec_show_deco_gas | |
106 ; Menupos3=0, do nothing | 108 ; Menupos3=0, do nothing |
107 return | 109 return |
108 | 110 |
109 customview_1sec_average: | 111 customview_1sec_average: |
110 goto DISP_total_average_show2 ; Update the figures only | 112 goto DISP_total_average_show2 ; Update the figures only |
147 bsf menu3_active ; Set Flag | 149 bsf menu3_active ; Set Flag |
148 goto DISP_show_cave_bailout | 150 goto DISP_show_cave_bailout |
149 | 151 |
150 customview_1sec_pSCR_ppO2: | 152 customview_1sec_pSCR_ppO2: |
151 goto DISP_show_pSCR_ppO2 ; Yes, compute and show value | 153 goto DISP_show_pSCR_ppO2 ; Yes, compute and show value |
154 | |
155 customview_1sec_show_deco_gas: | |
156 goto DISP_show_deco_gas1 ; Show the next decogas | |
157 | |
152 | 158 |
153 | |
154 ;============================================================================= | 159 ;============================================================================= |
155 ; Do every-minute tasks for the custom view area | 160 ; Do every-minute tasks for the custom view area |
156 | 161 |
157 customview_minute: | 162 customview_minute: |
158 movff menupos3,WREG ; copy | 163 movff menupos3,WREG ; copy |
176 bra customview_minute_cave_bailout; Show Cave consomation prediction. | 181 bra customview_minute_cave_bailout; Show Cave consomation prediction. |
177 dcfsnz WREG,F | 182 dcfsnz WREG,F |
178 bra customview_minute_pSCR_ppO2; Show pSCR ppO2 level | 183 bra customview_minute_pSCR_ppO2; Show pSCR ppO2 level |
179 dcfsnz WREG,F | 184 dcfsnz WREG,F |
180 bra customview_minute_show_change_gf; Show and/or change GF values | 185 bra customview_minute_show_change_gf; Show and/or change GF values |
186 dcfsnz WREG,F | |
187 bra customview_minute_show_deco_gas ; Show the next decogas | |
181 | 188 |
182 ; Menupos3=0, do nothing | 189 ; Menupos3=0, do nothing |
183 return | 190 return |
184 | 191 |
185 customview_minute_clock: | 192 customview_minute_clock: |
195 customview_minute_marker: ; Do nothing extra | 202 customview_minute_marker: ; Do nothing extra |
196 customview_minute_stopwatch: ; Do nothing extra | 203 customview_minute_stopwatch: ; Do nothing extra |
197 customview_minute_average: ; Do nothing extra | 204 customview_minute_average: ; Do nothing extra |
198 customview_minute_graphs: ; Do nothing extra | 205 customview_minute_graphs: ; Do nothing extra |
199 customview_minute_pSCR_ppO2: ; Do nothing extra | 206 customview_minute_pSCR_ppO2: ; Do nothing extra |
207 customview_minute_show_deco_gas: ; Do nothing extra | |
200 return | 208 return |
201 | 209 |
202 ;============================================================================= | 210 ;============================================================================= |
203 ; Show next customview (and delete this flag) | 211 ; Show next customview (and delete this flag) |
204 | 212 |
209 incf menupos3,F ; Number of customview to show | 217 incf menupos3,F ; Number of customview to show |
210 customview_toggle2: | 218 customview_toggle2: |
211 btfsc FLAG_apnoe_mode ; In Apnoe mode? | 219 btfsc FLAG_apnoe_mode ; In Apnoe mode? |
212 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely | 220 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely |
213 | 221 |
214 movlw d'11' ; Max number | 222 movlw d'12' ; Max number |
215 cpfsgt menupos3 ; Max reached? | 223 cpfsgt menupos3 ; Max reached? |
216 bra customview_mask ; No, show | 224 bra customview_mask ; No, show |
217 clrf menupos3 ; Reset to zero (Zero=no custom view) | 225 clrf menupos3 ; Reset to zero (Zero=no custom view) |
218 | 226 |
219 customview_mask: | 227 customview_mask: |
241 bra customview_init_cave_bailout ; 9: Show Cave consomation prediction. | 249 bra customview_init_cave_bailout ; 9: Show Cave consomation prediction. |
242 dcfsnz WREG,F | 250 dcfsnz WREG,F |
243 bra customview_init_pSCR_ppo2 ; 10: Show ppO2 for pSCR users | 251 bra customview_init_pSCR_ppo2 ; 10: Show ppO2 for pSCR users |
244 dcfsnz WREG,F | 252 dcfsnz WREG,F |
245 bra customview_init_show_change_gf ; 11: Show and/or change GF values | 253 bra customview_init_show_change_gf ; 11: Show and/or change GF values |
254 dcfsnz WREG,F | |
255 bra customview_init_show_deco_gas ; 12: Show deco gas | |
246 | 256 |
247 customview_init_nocustomview: | 257 customview_init_nocustomview: |
248 bra customview_toggle_exit | 258 bra customview_toggle_exit |
249 | 259 |
250 customview_init_average: | 260 customview_init_average: |
382 decfsz lo,F ; jump over next line if char_I_deco_model == 1 | 392 decfsz lo,F ; jump over next line if char_I_deco_model == 1 |
383 bra customview_toggle_exit | 393 bra customview_toggle_exit |
384 | 394 |
385 bsf menu3_active ; Set Flag | 395 bsf menu3_active ; Set Flag |
386 call DISP_show_gf_customview ; Show info | 396 call DISP_show_gf_customview ; Show info |
397 bra customview_toggle_exit | |
398 | |
399 customview_init_show_deco_gas: | |
400 bra customview_toggle ; mH: Ignore now | |
401 | |
402 btfsc no_deco_customviews ; no-deco-mode-flag = 1 | |
403 bra customview_toggle ; Yes, use next Customview! | |
404 btfsc FLAG_const_ppO2_mode ; in ppO2 mode | |
405 bra surfcustomview_toggle ; Yes, use next Customview! | |
406 | |
407 call DISP_show_deco_gas ; Show the next decogas | |
408 | |
387 bra customview_toggle_exit | 409 bra customview_toggle_exit |
388 | 410 |
389 customview_toggle_exit: | 411 customview_toggle_exit: |
390 bcf toggle_customview ; Clear flag | 412 bcf toggle_customview ; Clear flag |
391 ostc_debug 'Y' ; Sends debug-information to screen in debugmode | 413 ostc_debug 'Y' ; Sends debug-information to screen in debugmode |