comparison code_part1/OSTC_code_asm_part1/customview.asm @ 111:ed7826c740a0

1.74beta rc1
author heinrichsweikamp
date Wed, 22 Dec 2010 09:37:24 +0100
parents a2b9eca1f396
children 9500f431248a
comparison
equal deleted inserted replaced
110:8aa8acada0fd 111:ed7826c740a0
98 customview_minute_stopwatch: ; Do nothing extra 98 customview_minute_stopwatch: ; Do nothing extra
99 return 99 return
100 100
101 customview_toggle: ; Yes, show next customview (and delete this flag) 101 customview_toggle: ; Yes, show next customview (and delete this flag)
102 incf menupos3,F ; Number of customview to show 102 incf menupos3,F ; Number of customview to show
103 movlw d'5' ; Max number+1 103 movlw d'4' ; Max number
104 cpfseq menupos3 ; Max reached? 104 cpfsgt menupos3 ; Max reached?
105 bra customview_mask ; No, show 105 bra customview_mask ; No, show
106 clrf menupos3 ; Reset to zero (Zero=no custom view) 106 clrf menupos3 ; Reset to zero (Zero=no custom view)
107 customview_mask: 107 customview_mask:
108 call PLED_clear_customview_divemode 108 call PLED_clear_customview_divemode
109 movff menupos3,temp1 ; Menupos3 holds number of customview function 109 movff menupos3,temp1 ; Menupos3 holds number of customview function
142 142
143 143
144 144
145 surfcustomview_toggle: ; Yes, show next customview (and delete this flag) 145 surfcustomview_toggle: ; Yes, show next customview (and delete this flag)
146 incf menupos3,F ; Number of customview to show 146 incf menupos3,F ; Number of customview to show
147 movlw d'3' ; Max number+1 147 movlw d'4' ; Max number
148 cpfseq menupos3 ; Max reached? 148 cpfsgt menupos3 ; Max reached?
149 bra surfcustomview_mask ; No, show 149 bra surfcustomview_mask ; No, show
150 clrf menupos3 ; Reset to zero (Zero=no custom view) 150 clrf menupos3 ; Reset to zero (Zero=no custom view)
151 surfcustomview_mask: 151 surfcustomview_mask:
152 call PLED_clear_customview_surfacemode 152 call PLED_clear_customview_surfacemode
153 movff menupos3,temp1 ; Menupos3 holds number of customview function 153 movff menupos3,temp1 ; Menupos3 holds number of customview function
154 dcfsnz temp1,F 154 dcfsnz temp1,F
155 bra surfcustomview_init_graphs ; Show the tissue graphs 155 bra surfcustomview_init_graphs ; Show the tissue graphs
156 dcfsnz temp1,F 156 dcfsnz temp1,F
157 bra surfcustomview_init_gaslist ; Show pre-dive gaslist/setpoint list 157 bra surfcustomview_init_gaslist ; Show pre-dive gaslist/setpoint list
158 dcfsnz temp1,F
159 bra surfcustomview_init_interval ; Show the interval counter
160 dcfsnz temp1,F
161 bra surfcustomview_init_cfview ; Show the interval counter
158 ; bra surfcustomview_init_nocustomview ; menupos3=0 -> No Customview 162 ; bra surfcustomview_init_nocustomview ; menupos3=0 -> No Customview
159 surfcustomview_init_nocustomview: 163 surfcustomview_init_nocustomview:
160 bra surfcustomview_toggle_exit 164 bra surfcustomview_toggle_exit
161 165
162 surfcustomview_init_graphs: 166 surfcustomview_init_graphs:
165 169
166 surfcustomview_init_gaslist: 170 surfcustomview_init_gaslist:
167 call PLED_pre_dive_screen ; Show the Gaslist/Setpoint list 171 call PLED_pre_dive_screen ; Show the Gaslist/Setpoint list
168 bra surfcustomview_toggle_exit 172 bra surfcustomview_toggle_exit
169 173
174 surfcustomview_init_interval:
175 DISPLAYTEXT d'189' ; Surface
176 DISPLAYTEXT d'240' ; Interval:
177 call PLED_interval ; Display the interval
178 bra surfcustomview_toggle_exit
179
180 surfcustomview_init_cfview:
181 read_int_eeprom d'34' ; Get Decomode
182 incf EEDATA,W ; +1 -> WREG
183 movwf temp10
184 dcfsnz temp10,F
185 call PLED_show_cf11_cf12_cf29 ; =0 (ZH-L16 OC)
186 dcfsnz temp10,F
187 bra surfcustomview_toggle_exit ; =1 (Gauge)
188 dcfsnz temp10,F
189 call PLED_show_cf11_cf12_cf29 ; =2 (ZH-L16 CC)
190 dcfsnz temp10,F
191 bra surfcustomview_toggle_exit ; =3 (Apnoe)
192 dcfsnz temp10,F
193 call PLED_show_cf32_cf33_cf29 ; =4 (L16-GF OC)
194 dcfsnz temp10,F
195 call PLED_show_cf32_cf33_cf29 ; =5 (L16-GF CC)
196 bra surfcustomview_toggle_exit
197
170 surfcustomview_toggle_exit: 198 surfcustomview_toggle_exit:
171 bcf toggle_customview ; Clear flag 199 bcf toggle_customview ; Clear flag
172 200
173 201
174 202
177 movff menupos3,temp1 ; copy 205 movff menupos3,temp1 ; copy
178 dcfsnz temp1,F 206 dcfsnz temp1,F
179 bra surfcustomview_1sec_graphs ; Update the Graphs 207 bra surfcustomview_1sec_graphs ; Update the Graphs
180 dcfsnz temp1,F 208 dcfsnz temp1,F
181 bra surfcustomview_1sec_gaslist ; Update the Gaslist/SetPoint List 209 bra surfcustomview_1sec_gaslist ; Update the Gaslist/SetPoint List
182 ; Menupos3=0, do nothing 210 dcfsnz temp1,F
183 return 211 bra surfcustomview_1sec_interval ; Update the Interval display
184 212 dcfsnz temp1,F
213 bra surfcustomview_1sec_cfview ; Update the critical cf view
214 ; Menupos3=0, do nothing
215 return
216 surfcustomview_1sec_cfview: ; Do nothing extra
185 surfcustomview_1sec_graphs: ; Do nothing extra 217 surfcustomview_1sec_graphs: ; Do nothing extra
186 surfcustomview_1sec_gaslist: ; Do nothing extra 218 surfcustomview_1sec_gaslist: ; Do nothing extra
219 surfcustomview_1sec_interval: ; Do nothing extra
187 return 220 return
188 221
189 222
190 surfcustomview_minute: ; Do every-minute tasks for the custom view area 223 surfcustomview_minute: ; Do every-minute tasks for the custom view area
191 movff menupos3,temp1 ; copy 224 movff menupos3,temp1 ; copy
192 dcfsnz temp1,F 225 dcfsnz temp1,F
193 bra surfcustomview_minute_graphs ; Update the Graphs 226 bra surfcustomview_minute_graphs ; Update the Graphs
194 dcfsnz temp1,F 227 dcfsnz temp1,F
195 bra surfcustomview_minute_gaslist ; Update the Gaslist/SetPoint List 228 bra surfcustomview_minute_gaslist ; Update the Gaslist/SetPoint List
229 dcfsnz temp1,F
230 bra surfcustomview_minute_interval ; Update the Interval display
231 dcfsnz temp1,F
232 bra surfcustomview_minute_cfview ; Update the critical cf view
196 ; Menupos3=0, do nothing 233 ; Menupos3=0, do nothing
197 return 234 return
198 235
199 surfcustomview_minute_graphs: 236 surfcustomview_minute_graphs:
200 call PLED_tissue_saturation_graph ; Draw/Update the graphs 237 call PLED_tissue_saturation_graph ; Draw/Update the graphs
201 return 238 return
202 239
240 surfcustomview_minute_interval:
241 call PLED_interval ; Display the interval
242 return
243
203 surfcustomview_minute_gaslist: ; Do nothing extra 244 surfcustomview_minute_gaslist: ; Do nothing extra
204 return 245 surfcustomview_minute_cfview: ; Do nothing extra
246 return