comparison code_part1/OSTC_code_asm_part1/start.asm @ 667:8a8124f6b389

aGF handling during deco init
author heinrichsweikamp
date Sun, 02 Dec 2012 22:25:31 +0100
parents ea2bc3b9224e
children 8f8d39117ff7
comparison
equal deleted inserted replaced
666:3282581fe178 667:8a8124f6b389
350 cpfseq EEDATA 350 cpfseq EEDATA
351 bra restart_5_test_gfO2_mode ; check for GF CC mode 351 bra restart_5_test_gfO2_mode ; check for GF CC mode
352 movlw d'1' 352 movlw d'1'
353 movff WREG,char_I_deco_model ; Set Flagbyte for GF method 353 movff WREG,char_I_deco_model ; Set Flagbyte for GF method
354 ; Load GF values into RAM 354 ; Load GF values into RAM
355 GETCUSTOM8 d'32' ; GF low 355 rcall restart_load_gf
356 movff EEDATA,char_I_GF_Low_percentage
357 GETCUSTOM8 d'33' ; GF high
358 movff EEDATA,char_I_GF_High_percentage
359 return ; start in Surfacemode 356 return ; start in Surfacemode
360 restart_5_test_gfO2_mode: 357 restart_5_test_gfO2_mode:
361 movlw d'5' ; GF CC mode 358 movlw d'5' ; GF CC mode
362 cpfseq EEDATA 359 cpfseq EEDATA
363 bra restart_5_test_pSCR_mode ; check for pSCR-GF 360 bra restart_5_test_pSCR_mode ; check for pSCR-GF
364 bsf FLAG_const_ppO2_mode ; Set flag for ppO2 mode 361 bsf FLAG_const_ppO2_mode ; Set flag for ppO2 mode
365 movlw d'1' 362 movlw d'1'
366 movff WREG,char_I_deco_model ; Set Flagbyte for GF method 363 movff WREG,char_I_deco_model ; Set Flagbyte for GF method
367 ; Load GF values into RAM 364 ; Load GF values into RAM
368 GETCUSTOM8 d'32' ; GF low 365 rcall restart_load_gf
369 movff EEDATA,char_I_GF_Low_percentage
370 GETCUSTOM8 d'33' ; GF high
371 movff EEDATA,char_I_GF_High_percentage
372 return ; start in Surfacemode 366 return ; start in Surfacemode
373 restart_5_test_pSCR_mode: 367 restart_5_test_pSCR_mode:
374 movlw d'6' ; pSCR-GF 368 movlw d'6' ; pSCR-GF
375 cpfseq EEDATA 369 cpfseq EEDATA
376 return ; start in Surfacemode 370 return ; start in Surfacemode
377 bcf FLAG_const_ppO2_mode ; Clear flag for ppO2 mode 371 bcf FLAG_const_ppO2_mode ; Clear flag for ppO2 mode
378 movlw d'1' 372 movlw d'1'
379 movff WREG,char_I_deco_model ; Set Flagbyte for GF method 373 movff WREG,char_I_deco_model ; Set Flagbyte for GF method
380 ; Load GF values into RAM 374 ; Load GF values into RAM
375 rcall restart_load_gf
376 return ; start in Surfacemode
377
378 restart_load_gf:
379 btfss use_aGF
380 bra restart_load_gf2 ; Use aGf
381 ; Use normal GF
382 ; Load GF values into RAM
381 GETCUSTOM8 d'32' ; GF low 383 GETCUSTOM8 d'32' ; GF low
382 movff EEDATA,char_I_GF_Low_percentage 384 movff EEDATA,char_I_GF_Low_percentage
383 GETCUSTOM8 d'33' ; GF high 385 GETCUSTOM8 d'33' ; GF high
384 movff EEDATA,char_I_GF_High_percentage 386 movff EEDATA,char_I_GF_High_percentage
385 return ; start in Surfacemode 387 return ; Done.
388 restart_load_gf2: ; Use aGf
389 ; Load GF values into RAM
390 GETCUSTOM8 d'67' ; aGF low
391 movff EEDATA,char_I_GF_Low_percentage
392 GETCUSTOM8 d'68' ; aGF high
393 movff EEDATA,char_I_GF_High_percentage
394 return ; Done.
395
386 396
387 ;============================================================================= 397 ;=============================================================================
388 398
389 startup_screen1: 399 startup_screen1:
390 call PLED_ClearScreen 400 call PLED_ClearScreen