Mercurial > public > hwos_code
comparison src/customview.asm @ 102:37275e0fa7f5
NEW: Show End-of-Dive time together with clock during deco
author | heinrichsweikamp |
---|---|
date | Wed, 07 May 2014 14:57:58 +0200 |
parents | 2825f1d2262f |
children | 0aaa4877ba25 |
comparison
equal
deleted
inserted
replaced
101:8c471940d989 | 102:37275e0fa7f5 |
---|---|
42 bra customview_1sec_view5 | 42 bra customview_1sec_view5 |
43 dcfsnz WREG,F | 43 dcfsnz WREG,F |
44 bra customview_1sec_view6 | 44 bra customview_1sec_view6 |
45 dcfsnz WREG,F | 45 dcfsnz WREG,F |
46 bra customview_1sec_view7 | 46 bra customview_1sec_view7 |
47 dcfsnz WREG,F | |
48 bra customview_1sec_view8 | |
47 ; Menupos3=0, do nothing | 49 ; Menupos3=0, do nothing |
48 return | 50 return |
49 | 51 |
50 customview_1sec_view3: | 52 customview_1sec_view3: |
51 call TFT_decoplan ; Show decoplan | 53 call TFT_decoplan ; Show decoplan |
65 customview_1sec_view6: | 67 customview_1sec_view6: |
66 ; Compass updated seperately (Faster) in divemode | 68 ; Compass updated seperately (Faster) in divemode |
67 return | 69 return |
68 customview_1sec_view7: ; Dynamic gaslist | 70 customview_1sec_view7: ; Dynamic gaslist |
69 call TFT_dyn_gaslist ; Update the gaslist | 71 call TFT_dyn_gaslist ; Update the gaslist |
72 return | |
73 customview_1sec_view8: ; Sensor voltages | |
74 call TFT_hud_voltages ; Show HUD details | |
70 return | 75 return |
71 | 76 |
72 ;============================================================================= | 77 ;============================================================================= |
73 ; Do every-minute tasks for the custom view area | 78 ; Do every-minute tasks for the custom view area |
74 | 79 |
289 ; Show next customview (and delete this flag) | 294 ; Show next customview (and delete this flag) |
290 global customview_toggle | 295 global customview_toggle |
291 customview_toggle: | 296 customview_toggle: |
292 bcf switch_right | 297 bcf switch_right |
293 incf menupos3,F ; Number of customview to show | 298 incf menupos3,F ; Number of customview to show |
294 movlw d'7' ; Max number of customsviews in divemode | 299 movlw d'8' ; Max number of customsviews in divemode |
295 cpfsgt menupos3 ; Max reached? | 300 cpfsgt menupos3 ; Max reached? |
296 bra customview_mask ; No, show | 301 bra customview_mask ; No, show |
297 customview_toggle_reset: ; Timeout occured | 302 customview_toggle_reset: ; Timeout occured |
298 clrf menupos3 ; Reset to zero (Zero=no custom view) | 303 clrf menupos3 ; Reset to zero (Zero=no custom view) |
299 global customview_mask | 304 global customview_mask |
377 btfsc FLAG_apnoe_mode ; In Apnoe mode? | 382 btfsc FLAG_apnoe_mode ; In Apnoe mode? |
378 bra customview_toggle ; Yes, Call next view... | 383 bra customview_toggle ; Yes, Call next view... |
379 btfsc FLAG_ccr_mode ; In CC mode? | 384 btfsc FLAG_ccr_mode ; In CC mode? |
380 bra customview_toggle ; Yes, Call next view... | 385 bra customview_toggle ; Yes, Call next view... |
381 call TFT_dyn_gaslist ; Show the dyn gaslist | 386 call TFT_dyn_gaslist ; Show the dyn gaslist |
387 bra customview_toggle_exit | |
388 | |
389 customview_init_view8: ; Sensor millivolts | |
390 btfsc FLAG_apnoe_mode ; In Apnoe mode? | |
391 bra customview_toggle ; yes, Call next view... | |
392 btfss FLAG_ccr_mode ; In CC mode? | |
393 bra customview_toggle ; no, Call next view... | |
394 call TFT_hud_mask ; Setup HUD mask | |
395 call TFT_hud_voltages ; Show HUD details | |
382 bra customview_toggle_exit | 396 bra customview_toggle_exit |
383 | 397 |
384 customview_toggle_exit: | 398 customview_toggle_exit: |
385 call TFT_standard_color | 399 call TFT_standard_color |
386 bcf toggle_customview ; Clear flag | 400 bcf toggle_customview ; Clear flag |