Mercurial > public > hwos_code
comparison src/customview.asm @ 428:eccae727702f
some cleanup
author | heinrichsweikamp |
---|---|
date | Wed, 15 Jun 2016 12:26:48 +0200 |
parents | 881399cf0f5b |
children | 23b58c4bc6aa |
comparison
equal
deleted
inserted
replaced
427:ceb1b7329dce | 428:eccae727702f |
---|---|
29 | 29 |
30 global customview_second | 30 global customview_second |
31 customview_second: | 31 customview_second: |
32 movff menupos3,WREG ; copy | 32 movff menupos3,WREG ; copy |
33 dcfsnz WREG,F | 33 dcfsnz WREG,F |
34 bra customview_1sec_view1 | 34 goto TFT_update_ppo2_sensors ; Update Sensor data ; and return; bra customview_1sec_view1 |
35 dcfsnz WREG,F | 35 dcfsnz WREG,F |
36 bra customview_1sec_view2 | 36 goto TFT_update_avr_stopwatch ; Update average depth and stopwatch; and return ;bra customview_1sec_view2 |
37 dcfsnz WREG,F | 37 dcfsnz WREG,F |
38 bra customview_1sec_view3 | 38 goto TFT_decoplan ; Show decoplan ; and return; bra customview_1sec_view3 |
39 dcfsnz WREG,F | 39 dcfsnz WREG,F |
40 bra customview_1sec_view4 | 40 goto TFT_ead_end_tissues_clock ; Update EAD/END, Tissues and clock ; and return; bra customview_1sec_view4 |
41 dcfsnz WREG,F | 41 dcfsnz WREG,F |
42 bra customview_1sec_view5 | 42 goto TFT_gf_info ; Update GF informations ; and return bra customview_1sec_view5 |
43 dcfsnz WREG,F | 43 dcfsnz WREG,F |
44 bra customview_1sec_view6 | 44 return ; Compass updated seperately (Faster) in divemode; bra customview_1sec_view6 |
45 dcfsnz WREG,F | 45 dcfsnz WREG,F |
46 bra customview_1sec_view7 | 46 goto TFT_dyn_gaslist ; Update the gaslist ; and return bra customview_1sec_view7 |
47 dcfsnz WREG,F | 47 dcfsnz WREG,F |
48 bra customview_1sec_view8 | 48 goto TFT_hud_voltages ; Show HUD details ; and return bra customview_1sec_view8 |
49 dcfsnz WREG,F | 49 dcfsnz WREG,F |
50 bra customview_1sec_view9 ; Make sure to change value in "check_ppo2_display:" when moving around custom views | 50 bra customview_1sec_view9 ; Make sure to change value in "check_ppo2_display:" when moving around custom views |
51 dcfsnz WREG,F | 51 dcfsnz WREG,F |
52 bra customview_1sec_view10 | 52 goto TFT_sensor_check ; Show ppO2 of O2 and Diluent ; and return bra customview_1sec_view10 |
53 ; Menupos3=0, do nothing | 53 ; Menupos3=0, do nothing |
54 return | 54 return |
55 | 55 |
56 customview_1sec_view3: | 56 ;customview_1sec_view3: |
57 call TFT_decoplan ; Show decoplan | 57 ; goto TFT_decoplan ; Show decoplan ; and return |
58 return | 58 ;customview_1sec_view2: |
59 customview_1sec_view2: | 59 ; goto TFT_update_avr_stopwatch ; Update average depth and stopwatch; and return |
60 call TFT_update_avr_stopwatch ; Update average depth and stopwatch | 60 ;customview_1sec_view1: |
61 return | 61 ; goto TFT_update_ppo2_sensors ; Update Sensor data ; and return |
62 customview_1sec_view1: | 62 ;customview_1sec_view4: |
63 call TFT_update_ppo2_sensors ; Update Sensor data | 63 ; goto TFT_ead_end_tissues_clock ; Update EAD/END, Tissues and clock ; and return |
64 return | 64 ;customview_1sec_view5: |
65 customview_1sec_view4: | 65 ; goto TFT_gf_info ; Update GF informations ; and return |
66 call TFT_ead_end_tissues_clock ; Update EAD/END, Tissues and clock | 66 ;customview_1sec_view6: |
67 return | 67 ; return ; Compass updated seperately (Faster) in divemode |
68 customview_1sec_view5: | 68 ; |
69 call TFT_gf_info ; Update GF informations | 69 ;customview_1sec_view7: ; Dynamic gaslist |
70 return | 70 ; goto TFT_dyn_gaslist ; Update the gaslist ; and return |
71 customview_1sec_view6: | 71 ;customview_1sec_view8: ; Sensor voltages |
72 ; Compass updated seperately (Faster) in divemode | 72 ; goto TFT_hud_voltages ; Show HUD details ; and return |
73 return | |
74 customview_1sec_view7: ; Dynamic gaslist | |
75 call TFT_dyn_gaslist ; Update the gaslist | |
76 return | |
77 customview_1sec_view8: ; Sensor voltages | |
78 call TFT_hud_voltages ; Show HUD details | |
79 return | |
80 customview_1sec_view9: ; Ceiling | 73 customview_1sec_view9: ; Ceiling |
81 call TFT_ceiling ; Show Ceiling | 74 call TFT_ceiling ; Show Ceiling |
82 | 75 |
83 ; ppO2 value | 76 ; ppO2 value |
84 call TFT_display_ppo2_val | 77 call TFT_display_ppo2_val |
85 | 78 |
86 ; current GF value | 79 ; current GF value |
87 extern char_I_deco_model | 80 extern char_I_deco_model |
88 TSTOSS char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF | 81 TSTOSS char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF |
89 return ; No GF info for non-GF modes | 82 return ; No GF info for non-GF modes |
90 call TFT_gf_info ; Update GF informations | 83 goto TFT_gf_info ; Update GF informations ; and return |
91 | 84 |
92 return | 85 ;customview_1sec_view10: ; Sensor check |
93 | 86 ; goto TFT_sensor_check ; Show ppO2 of O2 and Diluent ; and return |
94 customview_1sec_view10: ; Sensor check | |
95 call TFT_sensor_check ; Show ppO2 of O2 and Diluent | |
96 return | |
97 | 87 |
98 | 88 |
99 ;============================================================================= | 89 ;============================================================================= |
100 ; Do every-minute tasks for the custom view area | 90 ; Do every-minute tasks for the custom view area |
101 | 91 |
329 STRCPY_TEXT_PRINT tQuitSim ; "Quit Simulation?" | 319 STRCPY_TEXT_PRINT tQuitSim ; "Quit Simulation?" |
330 bra menuview_exit ; Done. | 320 bra menuview_exit ; Done. |
331 menuview_view3: | 321 menuview_view3: |
332 btfss simulatormode_active ; View only for simulator mode | 322 btfss simulatormode_active ; View only for simulator mode |
333 bra menuview_toggle ; Call next option | 323 bra menuview_toggle ; Call next option |
334 STRCPY_TEXT_PRINT tDescent1m ; "Descent 1m" | 324 STRCPY_PRINT "Sim:-1m" |
335 bra menuview_exit ; Done. | 325 bra menuview_exit ; Done. |
336 menuview_view4: | 326 menuview_view4: |
337 btfss simulatormode_active ; View only for simulator mode | 327 btfss simulatormode_active ; View only for simulator mode |
338 bra menuview_toggle ; Call next option | 328 bra menuview_toggle ; Call next option |
339 STRCPY_TEXT_PRINT tAscent1m ; "Ascend 1m" | 329 STRCPY_PRINT "Sim:+1m" |
340 bra menuview_exit ; Done. | 330 bra menuview_exit ; Done. |
341 menuview_view5: | 331 menuview_view5: |
342 btfss FLAG_apnoe_mode ; In Apnoe mode? | 332 btfss FLAG_apnoe_mode ; In Apnoe mode? |
343 bra menuview_toggle ; No, call next option | 333 bra menuview_toggle ; No, call next option |
344 btfss FLAG_active_descent ; Are we descending? | 334 btfss FLAG_active_descent ; Are we descending? |
356 bra menuview_toggle ; Call next option | 346 bra menuview_toggle ; Call next option |
357 btfsc FLAG_gauge_mode ; In Gauge mode? | 347 btfsc FLAG_gauge_mode ; In Gauge mode? |
358 bra menuview_toggle ; Yes, call next option | 348 bra menuview_toggle ; Yes, call next option |
359 btfsc FLAG_apnoe_mode ; In Apnoe mode? | 349 btfsc FLAG_apnoe_mode ; In Apnoe mode? |
360 bra menuview_toggle ; Yes, call next option | 350 bra menuview_toggle ; Yes, call next option |
361 STRCPY_TEXT_PRINT tplus5min ; "Sim:+5mins" | 351 STRCPY_PRINT "Sim:+5'" |
362 bra menuview_exit ; Done. | 352 bra menuview_exit ; Done. |
363 menuview_view8: | 353 menuview_view8: |
364 movlw .6 | 354 movlw .6 |
365 cpfseq menupos3 ; in compass view? | 355 cpfseq menupos3 ; in compass view? |
366 bra menuview_toggle ; No, call next option | 356 bra menuview_toggle ; No, call next option |