Mercurial > public > hwos_code
comparison src/customview.asm @ 216:973a0969e0ac
NEW: On-board simulator can increase divetime in 5min steps
author | heinrichsweikamp |
---|---|
date | Mon, 15 Dec 2014 19:50:51 +0100 |
parents | efe70488a04b |
children | 94bf757690cf |
comparison
equal
deleted
inserted
replaced
215:8636efc5c6c5 | 216:973a0969e0ac |
---|---|
239 movlw divemode_menuview_timeout | 239 movlw divemode_menuview_timeout |
240 movwf timeout_counter3 | 240 movwf timeout_counter3 |
241 bsf menuview | 241 bsf menuview |
242 bcf switch_left | 242 bcf switch_left |
243 incf menupos2,F ; Number of options to show | 243 incf menupos2,F ; Number of options to show |
244 movlw d'6' ; Max number of options in divemode | 244 movlw d'8' ; Max number of options in divemode |
245 cpfsgt menupos2 ; Max reached? | 245 cpfsgt menupos2 ; Max reached? |
246 bra menuview_mask ; No, show | 246 bra menuview_mask ; No, show |
247 global menuview_toggle_reset | 247 global menuview_toggle_reset |
248 menuview_toggle_reset: ; Timeout occured | 248 menuview_toggle_reset: ; Timeout occured |
249 clrf menupos2 | 249 clrf menupos2 |
272 bra menuview_view4 | 272 bra menuview_view4 |
273 dcfsnz WREG,F | 273 dcfsnz WREG,F |
274 bra menuview_view5 | 274 bra menuview_view5 |
275 dcfsnz WREG,F | 275 dcfsnz WREG,F |
276 bra menuview_view6 | 276 bra menuview_view6 |
277 dcfsnz WREG,F | |
278 bra menuview_view7 | |
277 menuview_exit: | 279 menuview_exit: |
278 call TFT_standard_color | 280 call TFT_standard_color |
279 bcf win_invert ; Reset invert flag | 281 bcf win_invert ; Reset invert flag |
280 return ; Menupos2 = 0, Show nothing | 282 return ; Menupos2 = 0, Show nothing |
281 | 283 |
327 menuview_view6: | 329 menuview_view6: |
328 btfss FLAG_gauge_mode ; In Gauge mode? | 330 btfss FLAG_gauge_mode ; In Gauge mode? |
329 bra menuview_toggle ; No, call next option | 331 bra menuview_toggle ; No, call next option |
330 STRCPY_TEXT_PRINT tDivemenu_ResetAvr ; "Reset Avr." | 332 STRCPY_TEXT_PRINT tDivemenu_ResetAvr ; "Reset Avr." |
331 bra menuview_exit ; Done. | 333 bra menuview_exit ; Done. |
334 menuview_view7: | |
335 btfss simulatormode_active ; View only for simulator mode | |
336 bra menuview_toggle ; Call next option | |
337 btfsc FLAG_gauge_mode ; In Gauge mode? | |
338 bra menuview_toggle ; Yes, call next option | |
339 btfsc FLAG_apnoe_mode ; In Apnoe mode? | |
340 bra menuview_toggle ; Yes, call next option | |
341 STRCPY_TEXT_PRINT tplus5min ; "Sim:+5mins" | |
342 bra menuview_exit ; Done. | |
332 | 343 |
333 | 344 |
334 ;============================================================================= | 345 ;============================================================================= |
335 ; Show next customview (and delete this flag) | 346 ; Show next customview (and delete this flag) |
336 global customview_toggle | 347 global customview_toggle |