comparison code_part1/OSTC_code_asm_part1/customview.asm @ 785:b0c96aaa86e4

add ceiling display, no turkish language support anymore
author heinrichsweikamp
date Sun, 29 Jun 2014 15:13:32 +0200
parents 43ef5a003df7
children c50296c3059e
comparison
equal deleted inserted replaced
784:46ef1e1388f1 785:b0c96aaa86e4
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 106 dcfsnz WREG,F
107 bra customview_1sec_show_deco_gas 107 bra customview_1sec_show_deco_gas
108 dcfsnz WREG,F
109 bra customview_1sec_show_ceiling
108 ; Menupos3=0, do nothing 110 ; Menupos3=0, do nothing
109 return 111 return
110 112
111 customview_1sec_average: 113 customview_1sec_average:
112 goto DISP_total_average_show2 ; Update the figures only 114 goto DISP_total_average_show2 ; Update the figures only
153 155
154 customview_1sec_pSCR_ppO2: 156 customview_1sec_pSCR_ppO2:
155 goto DISP_show_pSCR_ppO2 ; Yes, compute and show value 157 goto DISP_show_pSCR_ppO2 ; Yes, compute and show value
156 158
157 customview_1sec_show_deco_gas: 159 customview_1sec_show_deco_gas:
158 goto DISP_show_deco_gas1 ; Show the next decogas 160 goto DISP_show_deco_gas1 ; Show the next decogas
159 161
162 customview_1sec_show_ceiling:
163 goto DISP_show_ceiling_1 ; Update the ceiling
160 164
161 ;============================================================================= 165 ;=============================================================================
162 ; Do every-minute tasks for the custom view area 166 ; Do every-minute tasks for the custom view area
163 167
164 customview_minute: 168 customview_minute:
185 bra customview_minute_pSCR_ppO2; Show pSCR ppO2 level 189 bra customview_minute_pSCR_ppO2; Show pSCR ppO2 level
186 dcfsnz WREG,F 190 dcfsnz WREG,F
187 bra customview_minute_show_change_gf; Show and/or change GF values 191 bra customview_minute_show_change_gf; Show and/or change GF values
188 dcfsnz WREG,F 192 dcfsnz WREG,F
189 bra customview_minute_show_deco_gas ; Show the next decogas 193 bra customview_minute_show_deco_gas ; Show the next decogas
190 194 dcfsnz WREG,F
195 bra customview_minute_show_ceiling ; Update the ceiling
191 ; Menupos3=0, do nothing 196 ; Menupos3=0, do nothing
192 return 197 return
193 198
194 customview_minute_clock: 199 customview_minute_clock:
195 goto DISP_diveclock2 ; Update the clock 200 goto DISP_diveclock2 ; Update the clock
205 customview_minute_stopwatch: ; Do nothing extra 210 customview_minute_stopwatch: ; Do nothing extra
206 customview_minute_average: ; Do nothing extra 211 customview_minute_average: ; Do nothing extra
207 customview_minute_graphs: ; Do nothing extra 212 customview_minute_graphs: ; Do nothing extra
208 customview_minute_pSCR_ppO2: ; Do nothing extra 213 customview_minute_pSCR_ppO2: ; Do nothing extra
209 customview_minute_show_deco_gas: ; Do nothing extra 214 customview_minute_show_deco_gas: ; Do nothing extra
215 customview_minute_show_ceiling: ; Do nothing extra
210 return 216 return
211 217
212 ;============================================================================= 218 ;=============================================================================
213 ; Show next customview (and delete this flag) 219 ; Show next customview (and delete this flag)
214 220
219 incf menupos3,F ; Number of customview to show 225 incf menupos3,F ; Number of customview to show
220 customview_toggle2: 226 customview_toggle2:
221 btfsc FLAG_apnoe_mode ; In Apnoe mode? 227 btfsc FLAG_apnoe_mode ; In Apnoe mode?
222 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely 228 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely
223 229
224 movlw d'12' ; Max number 230 movlw d'13' ; Max number
225 cpfsgt menupos3 ; Max reached? 231 cpfsgt menupos3 ; Max reached?
226 bra customview_mask ; No, show 232 bra customview_mask ; No, show
227 clrf menupos3 ; Reset to zero (Zero=no custom view) 233 clrf menupos3 ; Reset to zero (Zero=no custom view)
228 234
229 customview_mask: 235 customview_mask:
253 bra customview_init_pSCR_ppo2 ; 10: Show ppO2 for pSCR users 259 bra customview_init_pSCR_ppo2 ; 10: Show ppO2 for pSCR users
254 dcfsnz WREG,F 260 dcfsnz WREG,F
255 bra customview_init_show_change_gf ; 11: Show and/or change GF values 261 bra customview_init_show_change_gf ; 11: Show and/or change GF values
256 dcfsnz WREG,F 262 dcfsnz WREG,F
257 bra customview_init_show_deco_gas ; 12: Show deco gas 263 bra customview_init_show_deco_gas ; 12: Show deco gas
264 dcfsnz WREG,F
265 bra customview_init_show_ceiling ; 13: Show ceiling
266
258 267
259 customview_init_nocustomview: 268 customview_init_nocustomview:
260 bra customview_toggle_exit 269 bra customview_toggle_exit
261 270
262 customview_init_average: 271 customview_init_average:
406 btfsc FLAG_const_ppO2_mode ; in ppO2 mode 415 btfsc FLAG_const_ppO2_mode ; in ppO2 mode
407 bra surfcustomview_toggle ; Yes, use next Customview! 416 bra surfcustomview_toggle ; Yes, use next Customview!
408 417
409 call DISP_show_deco_gas ; Show the next decogas 418 call DISP_show_deco_gas ; Show the next decogas
410 419
420 bra customview_toggle_exit
421
422 customview_init_show_ceiling:
423 btfsc no_deco_customviews ; no-deco-mode-flag = 1
424 bra customview_toggle ; Yes, use next Customview!
425 call DISP_show_ceiling ; Update the ceiling
411 bra customview_toggle_exit 426 bra customview_toggle_exit
412 427
413 customview_toggle_exit: 428 customview_toggle_exit:
414 bcf toggle_customview ; Clear flag 429 bcf toggle_customview ; Clear flag
415 ostc_debug 'Y' ; Sends debug-information to screen in debugmode 430 ostc_debug 'Y' ; Sends debug-information to screen in debugmode