comparison code_part1/OSTC_code_asm_part1/start.asm @ 137:e6aa4a74c3c2

Fix: Customviews for Apnoe and Gauge mode
author mh <>
date Wed, 05 Jan 2011 20:44:10 +0100
parents f24137eb85de
children 8b75ba28d641
comparison
equal deleted inserted replaced
136:20b2c77a6cd2 137:e6aa4a74c3c2
196 bcf gauge_mode 196 bcf gauge_mode
197 bcf FLAG_const_ppO2_mode 197 bcf FLAG_const_ppO2_mode
198 bcf FLAG_apnoe_mode 198 bcf FLAG_apnoe_mode
199 199
200 ; Pre-load modes for OC, GF 90/90 and no Aponoe or Gauge. 200 ; Pre-load modes for OC, GF 90/90 and no Aponoe or Gauge.
201 bcf no_deco_customviews ; Clear no-deco-mode-flag
201 movlw d'0' 202 movlw d'0'
202 movwf wait_temp 203 movwf wait_temp
203 movff wait_temp,char_I_deco_model ; Clear Flagbyte 204 movff wait_temp,char_I_deco_model ; Clear Flagbyte
204 ; Load GF values into RAM 205 ; Load GF values into RAM
205 movlw d'90' 206 movlw d'90'
210 read_int_eeprom d'34' ; Read deco data 211 read_int_eeprom d'34' ; Read deco data
211 movlw d'1' ; Gauge mode 212 movlw d'1' ; Gauge mode
212 cpfseq EEDATA 213 cpfseq EEDATA
213 bra restart_3_test_ppO2_mode; check for ppO2 mode 214 bra restart_3_test_ppO2_mode; check for ppO2 mode
214 bsf gauge_mode ; Set flag for gauge mode 215 bsf gauge_mode ; Set flag for gauge mode
216 bsf no_deco_customviews ; Set no-deco-mode-flag
215 return ; start in Surfacemode 217 return ; start in Surfacemode
216 restart_3_test_ppO2_mode: 218 restart_3_test_ppO2_mode:
217 movlw d'2' ; const ppO2 mode 219 movlw d'2' ; const ppO2 mode
218 cpfseq EEDATA 220 cpfseq EEDATA
219 bra restart_3_test_apnoe_mode; check for apnoe mode 221 bra restart_3_test_apnoe_mode; check for apnoe mode
222 restart_3_test_apnoe_mode: 224 restart_3_test_apnoe_mode:
223 movlw d'3' ; Apnoe mode 225 movlw d'3' ; Apnoe mode
224 cpfseq EEDATA 226 cpfseq EEDATA
225 bra restart_4_test_gf_mode ; check for GF OC mode 227 bra restart_4_test_gf_mode ; check for GF OC mode
226 bsf FLAG_apnoe_mode ; Set flag for Apnoe Mode 228 bsf FLAG_apnoe_mode ; Set flag for Apnoe Mode
229 bsf no_deco_customviews ; Set no-deco-mode-flag
227 return ; start in Surfacemode 230 return ; start in Surfacemode
228 restart_4_test_gf_mode: 231 restart_4_test_gf_mode:
229 movlw d'4' ; GF OC mode 232 movlw d'4' ; GF OC mode
230 cpfseq EEDATA 233 cpfseq EEDATA
231 bra restart_5_test_gfO2_mode; check for GF CC mode 234 bra restart_5_test_gfO2_mode; check for GF CC mode
244 return ; Start in Surfacemode 247 return ; Start in Surfacemode
245 bsf FLAG_const_ppO2_mode ; Set flag for ppO2 mode 248 bsf FLAG_const_ppO2_mode ; Set flag for ppO2 mode
246 movlw d'1' 249 movlw d'1'
247 movwf wait_temp 250 movwf wait_temp
248 movff wait_temp,char_I_deco_model ; Set Flagbyte for GF method 251 movff wait_temp,char_I_deco_model ; Set Flagbyte for GF method
249 ; Load GF values into RAM 252 ; Load GF values into RAM
250 GETCUSTOM8 d'32' ; GF low 253 GETCUSTOM8 d'32' ; GF low
251 movff EEDATA,char_I_GF_Lo_percentage 254 movff EEDATA,char_I_GF_Lo_percentage
252 GETCUSTOM8 d'33' ; GF high 255 GETCUSTOM8 d'33' ; GF high
253 movff EEDATA,char_I_GF_Hi_percentage 256 movff EEDATA,char_I_GF_Hi_percentage
254 return ; start in Surfacemode 257 return ; start in Surfacemode