comparison code_part1/OSTC_code_asm_part1/start.asm @ 592:cda5b45b953f

NEW: Deco mode "pSCR-GF": Computes deco and CNS based on pSCR parameters (CF62/63)
author heinrichsweikamp
date Mon, 28 May 2012 17:54:43 +0200
parents fbd5e2b75a63
children 16f4eafc197e
comparison
equal deleted inserted replaced
591:2966548fbe70 592:cda5b45b953f
340 movff EEDATA,char_I_GF_High_percentage 340 movff EEDATA,char_I_GF_High_percentage
341 return ; start in Surfacemode 341 return ; start in Surfacemode
342 restart_5_test_gfO2_mode: 342 restart_5_test_gfO2_mode:
343 movlw d'5' ; GF CC mode 343 movlw d'5' ; GF CC mode
344 cpfseq EEDATA 344 cpfseq EEDATA
345 return ; Start in Surfacemode 345 bra restart_5_test_pSCR_mode ; check for pSCR-GF
346 bsf FLAG_const_ppO2_mode ; Set flag for ppO2 mode 346 bsf FLAG_const_ppO2_mode ; Set flag for ppO2 mode
347 movlw d'1'
348 movff WREG,char_I_deco_model ; Set Flagbyte for GF method
349 ; Load GF values into RAM
350 GETCUSTOM8 d'32' ; GF low
351 movff EEDATA,char_I_GF_Low_percentage
352 GETCUSTOM8 d'33' ; GF high
353 movff EEDATA,char_I_GF_High_percentage
354 return ; start in Surfacemode
355
356 restart_5_test_pSCR_mode:
357 movlw d'6' ; pSCR-GF
358 cpfseq EEDATA
359 return ; start in Surfacemode
360 bcf FLAG_const_ppO2_mode ; Clear flag for ppO2 mode
347 movlw d'1' 361 movlw d'1'
348 movff WREG,char_I_deco_model ; Set Flagbyte for GF method 362 movff WREG,char_I_deco_model ; Set Flagbyte for GF method
349 ; Load GF values into RAM 363 ; Load GF values into RAM
350 GETCUSTOM8 d'32' ; GF low 364 GETCUSTOM8 d'32' ; GF low
351 movff EEDATA,char_I_GF_Low_percentage 365 movff EEDATA,char_I_GF_Low_percentage