Mercurial > public > mk2
diff 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 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/start.asm Mon May 28 09:08:43 2012 +0200 +++ b/code_part1/OSTC_code_asm_part1/start.asm Mon May 28 17:54:43 2012 +0200 @@ -342,7 +342,7 @@ restart_5_test_gfO2_mode: movlw d'5' ; GF CC mode cpfseq EEDATA - return ; Start in Surfacemode + bra restart_5_test_pSCR_mode ; check for pSCR-GF bsf FLAG_const_ppO2_mode ; Set flag for ppO2 mode movlw d'1' movff WREG,char_I_deco_model ; Set Flagbyte for GF method @@ -353,6 +353,20 @@ movff EEDATA,char_I_GF_High_percentage return ; start in Surfacemode +restart_5_test_pSCR_mode: + movlw d'6' ; pSCR-GF + cpfseq EEDATA + return ; start in Surfacemode + bcf FLAG_const_ppO2_mode ; Clear flag for ppO2 mode + movlw d'1' + movff WREG,char_I_deco_model ; Set Flagbyte for GF method + ; Load GF values into RAM + GETCUSTOM8 d'32' ; GF low + movff EEDATA,char_I_GF_Low_percentage + GETCUSTOM8 d'33' ; GF high + movff EEDATA,char_I_GF_High_percentage + return ; start in Surfacemode + ;============================================================================= startup_screen1: