comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 301:a5fd8777a598

Display ppO2[Diluent] in CCR modes
author heinrichsweikamp
date Sat, 30 Apr 2011 10:40:18 +0200
parents 21a0f7393468
children 91371c7553f5
comparison
equal deleted inserted replaced
300:438ecb8090eb 301:a5fd8777a598
132 btfsc enter_error_sleep ; Enter Fatal Error Routine? 132 btfsc enter_error_sleep ; Enter Fatal Error Routine?
133 call fatal_error_sleep ; Yes (In Sleepmode_vxx.asm!) 133 call fatal_error_sleep ; Yes (In Sleepmode_vxx.asm!)
134 134
135 bcf onesecupdate ; one seconds update done 135 bcf onesecupdate ; one seconds update done
136 136
137 ; GETCUSTOM8 d'38' ; Show seconds (=1?)
138 ; movwf lo
139 ; movlw d'1'
140 ; cpfseq lo ; =1?
141 ; bra diveloop_loop2 ; No, minutes only
142 ; bsf update_divetime ; Set Update flag
143 ;
144 ;
145 ;diveloop_loop2:
146 ; btfss update_divetime ; display new divetime?
147 ; bra diveloop_loop3 ; No
148 ; btfsc premenu ; Is the divemode menu active?
149 ; bra diveloop_loop2a ; Yes
150 ; call PLED_divemins ; Display (new) divetime!
151 ; btfsc FLAG_const_ppO2_mode ; only in const_ppO2_mode
152 ; call PLED_const_ppO2_value ; display const ppO2 setting in [Bar]
153 ; btfsc ppO2_show_value ; show ppO2?
154 ; call check_ppO2 ; check ppO2 and displays warning if required
155 ;
156 ;diveloop_loop2a:
157 ; bcf update_divetime ; clear flag
158 ;
159 diveloop_loop3: 137 diveloop_loop3:
160 btfss menubit ; Divemode menu active? 138 btfss menubit ; Divemode menu active?
161 call test_switches_divemode ; No, Check switches normal 139 call test_switches_divemode ; No, Check switches normal
162 140
163 btfsc menubit ; Divemode menu active? 141 btfsc menubit ; Divemode menu active?