comparison code_part1/OSTC_code_asm_part1/customview.asm @ 626:bab5a9fc1b10

restore last used customview in dive- and surface-mode
author heinrichsweikamp
date Sat, 11 Aug 2012 15:30:30 +0200
parents cda5b45b953f
children 3282581fe178
comparison
equal deleted inserted replaced
625:7743cf997648 626:bab5a9fc1b10
188 188
189 customview_toggle: 189 customview_toggle:
190 bcf menu3_active ;=1: menu entry three in divemode menu is active 190 bcf menu3_active ;=1: menu entry three in divemode menu is active
191 ostc_debug 'X' ; Sends debug-information to screen if debugmode active 191 ostc_debug 'X' ; Sends debug-information to screen if debugmode active
192 192
193 incf menupos3,F ; Number of customview to show
194 customview_toggle2:
193 btfsc FLAG_apnoe_mode ; In Apnoe mode? 195 btfsc FLAG_apnoe_mode ; In Apnoe mode?
194 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely 196 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely
195 197
196 incf menupos3,F ; Number of customview to show
197 movlw d'10' ; Max number 198 movlw d'10' ; Max number
198 cpfsgt menupos3 ; Max reached? 199 cpfsgt menupos3 ; Max reached?
199 bra customview_mask ; No, show 200 bra customview_mask ; No, show
200 clrf menupos3 ; Reset to zero (Zero=no custom view) 201 clrf menupos3 ; Reset to zero (Zero=no custom view)
201 202
347 ;============================================================================= 348 ;=============================================================================
348 ; Yes, show next customview (and delete this flag) 349 ; Yes, show next customview (and delete this flag)
349 350
350 surfcustomview_toggle: 351 surfcustomview_toggle:
351 incf menupos3,F ; Number of customview to show 352 incf menupos3,F ; Number of customview to show
353 surfcustomview_toggle2:
352 movlw d'4' ; Max number 354 movlw d'4' ; Max number
353 cpfsgt menupos3 ; Max reached? 355 cpfsgt menupos3 ; Max reached?
354 bra surfcustomview_mask ; No, show 356 bra surfcustomview_mask ; No, show
355 clrf menupos3 ; Reset to zero (Zero=no custom view) 357 clrf menupos3 ; Reset to zero (Zero=no custom view)
356 surfcustomview_mask: 358 surfcustomview_mask: