Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/customview.asm @ 666:3282581fe178
Allow gf switch
author | heinrichsweikamp |
---|---|
date | Sun, 02 Dec 2012 19:19:11 +0100 |
parents | bab5a9fc1b10 |
children | 3927bc5019c9 |
comparison
equal
deleted
inserted
replaced
665:259e4c1bf3c2 | 666:3282581fe178 |
---|---|
45 bra customview_menu3_ead_end ; Show nothing | 45 bra customview_menu3_ead_end ; Show nothing |
46 dcfsnz WREG,F | 46 dcfsnz WREG,F |
47 bra customview_menu3_@5 ; Show nothing | 47 bra customview_menu3_@5 ; Show nothing |
48 dcfsnz WREG,F | 48 dcfsnz WREG,F |
49 bra customview_menu3_cave_bailout; Show reset option | 49 bra customview_menu3_cave_bailout; Show reset option |
50 dcfsnz WREG,F | |
51 bra customview_menu3_pSCR_ppO2 ; Show nothing | |
52 dcfsnz WREG,F | |
53 bra customview_menu3_show_change_gf; Show toggle option | |
54 | |
50 return | 55 return |
51 | 56 |
52 customview_menu3_cave_bailout: | 57 customview_menu3_cave_bailout: |
53 customview_menu3_stopwatch: | 58 customview_menu3_stopwatch: |
54 DISPLAYTEXT .33 ; ResetAvr | 59 DISPLAYTEXT .33 ; ResetAvr |
55 return | 60 return |
61 | |
62 customview_menu3_show_change_gf: | |
63 DISPLAYTEXTH .269 ; ToggleGF | |
64 return | |
56 | 65 |
57 customview_menu3_marker: | 66 customview_menu3_marker: |
58 DISPLAYTEXT .30 ; Set Marker | 67 DISPLAYTEXT .30 ; Set Marker |
59 return | 68 return |
60 | 69 |
62 customview_menu3_lead_tiss: | 71 customview_menu3_lead_tiss: |
63 customview_menu3_average: | 72 customview_menu3_average: |
64 customview_menu3_graphs: | 73 customview_menu3_graphs: |
65 customview_menu3_ead_end: | 74 customview_menu3_ead_end: |
66 customview_menu3_@5: | 75 customview_menu3_@5: |
76 customview_menu3_pSCR_ppO2: | |
67 return | 77 return |
68 | 78 |
69 ;============================================================================= | 79 ;============================================================================= |
70 ; Do every-second tasks for the custom view area | 80 ; Do every-second tasks for the custom view area |
71 | 81 |
89 bra customview_1sec_@5 ; Show TTS for extra time. | 99 bra customview_1sec_@5 ; Show TTS for extra time. |
90 dcfsnz WREG,F | 100 dcfsnz WREG,F |
91 bra customview_1sec_cave_bailout; Show Cave conso prediction. | 101 bra customview_1sec_cave_bailout; Show Cave conso prediction. |
92 dcfsnz WREG,F | 102 dcfsnz WREG,F |
93 bra customview_1sec_pSCR_ppO2 ; Show/Update pSCR ppO2 | 103 bra customview_1sec_pSCR_ppO2 ; Show/Update pSCR ppO2 |
104 dcfsnz WREG,F | |
105 bra customview_1sec_show_change_gf; Show and/or change GF values | |
94 ; Menupos3=0, do nothing | 106 ; Menupos3=0, do nothing |
95 return | 107 return |
96 | 108 |
97 customview_1sec_average: | 109 customview_1sec_average: |
98 goto PLED_total_average_show2 ; Update the figures only | 110 goto PLED_total_average_show2 ; Update the figures only |
107 customview_1sec_stopwatch_gauge: | 119 customview_1sec_stopwatch_gauge: |
108 bsf menu3_active ; Set Flag | 120 bsf menu3_active ; Set Flag |
109 goto PLED_stopwatch_show_gauge ; Update figures + Description | 121 goto PLED_stopwatch_show_gauge ; Update figures + Description |
110 | 122 |
111 customview_1sec_marker: ; Do nothing extra | 123 customview_1sec_marker: ; Do nothing extra |
124 customview_1sec_show_change_gf: ; Do nothing extra | |
112 bsf menu3_active ; Set Flag | 125 bsf menu3_active ; Set Flag |
113 customview_1sec_clock: ; Do nothing extra | 126 customview_1sec_clock: ; Do nothing extra |
114 customview_1sec_lead_tiss: ; Do nothing extra | 127 customview_1sec_lead_tiss: ; Do nothing extra |
115 return | 128 return |
116 | 129 |
161 bra customview_minute_@5 ; Show TTS for extra time. | 174 bra customview_minute_@5 ; Show TTS for extra time. |
162 dcfsnz WREG,F | 175 dcfsnz WREG,F |
163 bra customview_minute_cave_bailout; Show Cave consomation prediction. | 176 bra customview_minute_cave_bailout; Show Cave consomation prediction. |
164 dcfsnz WREG,F | 177 dcfsnz WREG,F |
165 bra customview_minute_pSCR_ppO2; Show pSCR ppO2 level | 178 bra customview_minute_pSCR_ppO2; Show pSCR ppO2 level |
179 dcfsnz WREG,F | |
180 bra customview_minute_show_change_gf; Show and/or change GF values | |
166 | 181 |
167 ; Menupos3=0, do nothing | 182 ; Menupos3=0, do nothing |
168 return | 183 return |
169 | 184 |
170 customview_minute_clock: | 185 customview_minute_clock: |
171 goto PLED_diveclock2 ; Update the clock | 186 goto PLED_diveclock2 ; Update the clock |
172 | 187 |
173 customview_minute_lead_tiss: | 188 customview_minute_lead_tiss: |
174 goto PLED_show_leading_tissue_2 ; Update the leading tissue | 189 goto PLED_show_leading_tissue_2 ; Update the leading tissue |
175 | 190 |
191 customview_minute_show_change_gf: ; Do nothing extra | |
176 customview_minute_cave_bailout: ; Do nothing extra | 192 customview_minute_cave_bailout: ; Do nothing extra |
177 customview_minute_@5: ; Do nothing extra | 193 customview_minute_@5: ; Do nothing extra |
178 customview_minute_ead_end: ; Do nothing extra | 194 customview_minute_ead_end: ; Do nothing extra |
179 customview_minute_marker: ; Do nothing extra | 195 customview_minute_marker: ; Do nothing extra |
180 customview_minute_stopwatch: ; Do nothing extra | 196 customview_minute_stopwatch: ; Do nothing extra |
193 incf menupos3,F ; Number of customview to show | 209 incf menupos3,F ; Number of customview to show |
194 customview_toggle2: | 210 customview_toggle2: |
195 btfsc FLAG_apnoe_mode ; In Apnoe mode? | 211 btfsc FLAG_apnoe_mode ; In Apnoe mode? |
196 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely | 212 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely |
197 | 213 |
198 movlw d'10' ; Max number | 214 movlw d'11' ; Max number |
199 cpfsgt menupos3 ; Max reached? | 215 cpfsgt menupos3 ; Max reached? |
200 bra customview_mask ; No, show | 216 bra customview_mask ; No, show |
201 clrf menupos3 ; Reset to zero (Zero=no custom view) | 217 clrf menupos3 ; Reset to zero (Zero=no custom view) |
202 | 218 |
203 customview_mask: | 219 customview_mask: |
223 bra customview_init_@5 ; 8: Show TTS for extra time. | 239 bra customview_init_@5 ; 8: Show TTS for extra time. |
224 dcfsnz WREG,F | 240 dcfsnz WREG,F |
225 bra customview_init_cave_bailout ; 9: Show Cave consomation prediction. | 241 bra customview_init_cave_bailout ; 9: Show Cave consomation prediction. |
226 dcfsnz WREG,F | 242 dcfsnz WREG,F |
227 bra customview_init_pSCR_ppo2 ; 10: Show ppO2 for pSCR users | 243 bra customview_init_pSCR_ppo2 ; 10: Show ppO2 for pSCR users |
244 dcfsnz WREG,F | |
245 bra customview_init_show_change_gf ; 11: Show and/or change GF values | |
228 | 246 |
229 customview_init_nocustomview: | 247 customview_init_nocustomview: |
230 bra customview_toggle_exit | 248 bra customview_toggle_exit |
231 | 249 |
232 customview_init_average: | 250 customview_init_average: |
334 customview_init_pSCR_ppo2: | 352 customview_init_pSCR_ppo2: |
335 GETCUSTOM8 d'61' ; Show pSCR ppO2? | 353 GETCUSTOM8 d'61' ; Show pSCR ppO2? |
336 decfsz WREG,F ; WREG=1? | 354 decfsz WREG,F ; WREG=1? |
337 bra customview_toggle ; No, use next Customview | 355 bra customview_toggle ; No, use next Customview |
338 | 356 |
357 btfsc no_deco_customviews ; no-deco-mode-flag = 1 | |
358 bra customview_toggle ; Yes, use next Customview! | |
359 | |
339 call PLED_show_pSCR_ppO2 ; Yes, compute and show value | 360 call PLED_show_pSCR_ppO2 ; Yes, compute and show value |
340 | 361 |
341 bra customview_toggle_exit | 362 bra customview_toggle_exit |
363 | |
364 customview_init_show_change_gf: | |
365 GETCUSTOM8 d'69' ; Allow GF change? | |
366 decfsz WREG,F ; WREG=1? | |
367 bra customview_toggle ; No, use next Customview | |
368 | |
369 btfsc no_deco_customviews ; no-deco-mode-flag = 1 | |
370 bra customview_toggle ; Yes, use next Customview! | |
371 | |
372 movff char_I_deco_model,lo | |
373 decfsz lo,F ; jump over next line if char_I_deco_model == 1 | |
374 bra customview_toggle_exit | |
375 | |
376 bsf menu3_active ; Set Flag | |
377 call PLED_show_gf_customview ; Show info | |
378 bra customview_toggle_exit | |
342 | 379 |
343 customview_toggle_exit: | 380 customview_toggle_exit: |
344 bcf toggle_customview ; Clear flag | 381 bcf toggle_customview ; Clear flag |
345 ostc_debug 'Y' ; Sends debug-information to screen in debugmode | 382 ostc_debug 'Y' ; Sends debug-information to screen in debugmode |
346 return | 383 return |