Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/customview.asm @ 274:a728b4a1b660
Setpoint changes stored in profile, EAD and END displayed in divemode (Customview 7)
author | heinrichsweikamp |
---|---|
date | Sun, 17 Apr 2011 17:57:44 +0200 |
parents | fc699a7460e6 |
children | 46d1012d096a |
comparison
equal
deleted
inserted
replaced
273:35bbab4d3c6f | 274:a728b4a1b660 |
---|---|
71 bra customview_1sec_lead_tiss ; Update the leading tissue | 71 bra customview_1sec_lead_tiss ; Update the leading tissue |
72 dcfsnz WREG,F | 72 dcfsnz WREG,F |
73 bra customview_1sec_average ; Update the Average depth | 73 bra customview_1sec_average ; Update the Average depth |
74 dcfsnz WREG,F | 74 dcfsnz WREG,F |
75 bra customview_1sec_graphs ; Update the leading tissue | 75 bra customview_1sec_graphs ; Update the leading tissue |
76 dcfsnz WREG,F | |
77 bra customview_1sec_ead_end ; Show END and EAD in divemode | |
78 | |
76 ; Menupos3=0, do nothing | 79 ; Menupos3=0, do nothing |
77 return | 80 return |
78 | 81 |
79 customview_1sec_average: | 82 customview_1sec_average: |
80 call PLED_total_average_show2 ; Update the figures only | 83 call PLED_total_average_show2 ; Update the figures only |
98 call deco_calc_desaturation_time ; calculate desaturation time | 101 call deco_calc_desaturation_time ; calculate desaturation time |
99 movlb b'00000001' ; select ram bank 1 | 102 movlb b'00000001' ; select ram bank 1 |
100 call PLED_tissue_saturation_graph | 103 call PLED_tissue_saturation_graph |
101 return | 104 return |
102 | 105 |
106 customview_1sec_ead_end: | |
107 call PLED_show_end_ead_divemode | |
108 return | |
109 | |
103 ;============================================================================= | 110 ;============================================================================= |
104 ; Do every-minute tasks for the custom view area | 111 ; Do every-minute tasks for the custom view area |
105 | 112 |
106 customview_minute: | 113 customview_minute: |
107 movff menupos3,WREG ; copy | 114 movff menupos3,WREG ; copy |
112 dcfsnz WREG,F | 119 dcfsnz WREG,F |
113 bra customview_minute_clock ; Update the Clock | 120 bra customview_minute_clock ; Update the Clock |
114 dcfsnz WREG,F | 121 dcfsnz WREG,F |
115 bra customview_minute_lead_tiss ; Update the leading tissue | 122 bra customview_minute_lead_tiss ; Update the leading tissue |
116 dcfsnz WREG,F | 123 dcfsnz WREG,F |
117 bra customview_minute_average ; Update the Average depth | 124 bra customview_minute_average ; Update the Average depth |
118 dcfsnz WREG,F | 125 dcfsnz WREG,F |
119 bra customview_minute_graphs ; Update the graphs | 126 bra customview_minute_graphs ; Update the graphs |
127 dcfsnz WREG,F | |
128 bra customview_minute_ead_end ; Show END and EAD in divemode | |
129 | |
120 ; Menupos3=0, do nothing | 130 ; Menupos3=0, do nothing |
121 return | 131 return |
122 | 132 |
123 customview_minute_clock: | 133 customview_minute_clock: |
124 call PLED_diveclock2 ; Update the clock | 134 call PLED_diveclock2 ; Update the clock |
126 | 136 |
127 customview_minute_lead_tiss: | 137 customview_minute_lead_tiss: |
128 call PLED_show_leading_tissue_2 ; Update the leading tissue | 138 call PLED_show_leading_tissue_2 ; Update the leading tissue |
129 return | 139 return |
130 | 140 |
141 customview_minute_ead_end: ; Do nothing extra | |
131 customview_minute_marker: ; Do nothing extra | 142 customview_minute_marker: ; Do nothing extra |
132 customview_minute_stopwatch: ; Do nothing extra | 143 customview_minute_stopwatch: ; Do nothing extra |
133 customview_minute_average: ; Do nothing extra | 144 customview_minute_average: ; Do nothing extra |
134 customview_minute_graphs: | 145 customview_minute_graphs: ; Do nothing extra |
135 return | 146 return |
136 | 147 |
137 ;============================================================================= | 148 ;============================================================================= |
138 ; Yes, show next customview (and delete this flag) | 149 ; Yes, show next customview (and delete this flag) |
139 | 150 |
142 | 153 |
143 btfsc FLAG_apnoe_mode ; In Apnoe mode? | 154 btfsc FLAG_apnoe_mode ; In Apnoe mode? |
144 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely | 155 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely |
145 | 156 |
146 incf menupos3,F ; Number of customview to show | 157 incf menupos3,F ; Number of customview to show |
147 movlw d'6' ; Max number | 158 movlw d'7' ; Max number |
148 cpfsgt menupos3 ; Max reached? | 159 cpfsgt menupos3 ; Max reached? |
149 bra customview_mask ; No, show | 160 bra customview_mask ; No, show |
150 clrf menupos3 ; Reset to zero (Zero=no custom view) | 161 clrf menupos3 ; Reset to zero (Zero=no custom view) |
151 customview_mask: | 162 customview_mask: |
152 call PLED_clear_customview_divemode | 163 call PLED_clear_customview_divemode |
161 bra customview_init_lead_tissue ; Show the leading tissue | 172 bra customview_init_lead_tissue ; Show the leading tissue |
162 dcfsnz WREG,F | 173 dcfsnz WREG,F |
163 bra customview_init_average ; Show Total average depth | 174 bra customview_init_average ; Show Total average depth |
164 dcfsnz WREG,F | 175 dcfsnz WREG,F |
165 bra customview_init_graphs ; Show the graphs | 176 bra customview_init_graphs ; Show the graphs |
177 dcfsnz WREG,F | |
178 bra customview_init_ead_end ; Show END and EAD in divemode | |
166 | 179 |
167 customview_init_nocustomview: | 180 customview_init_nocustomview: |
168 bra customview_toggle_exit | 181 bra customview_toggle_exit |
169 | 182 |
170 customview_init_average: | 183 customview_init_average: |
199 | 212 |
200 btfsc no_deco_customviews ; no-deco-mode-flag = 1 | 213 btfsc no_deco_customviews ; no-deco-mode-flag = 1 |
201 bra customview_toggle ; Yes, use next Customview! | 214 bra customview_toggle ; Yes, use next Customview! |
202 | 215 |
203 call PLED_show_leading_tissue | 216 call PLED_show_leading_tissue |
217 bra customview_toggle_exit | |
218 | |
219 customview_init_ead_end: | |
220 call PLED_show_end_ead_divemode | |
204 bra customview_toggle_exit | 221 bra customview_toggle_exit |
205 | 222 |
206 customview_init_graphs: ; Show tissue graph | 223 customview_init_graphs: ; Show tissue graph |
207 GETCUSTOM8 d'52' ; Show Tissue Graph? (=1 in WREG) | 224 GETCUSTOM8 d'52' ; Show Tissue Graph? (=1 in WREG) |
208 decfsz WREG,F ; WREG=1? | 225 decfsz WREG,F ; WREG=1? |