# HG changeset patch # User heinrichsweikamp # Date 1341644995 -7200 # Node ID bbf5e1506c3960080308f65064ba5a29707c431f # Parent 4f43aee67da07c5fd488b1c894688b355c60c87c 2.27beta diff -r 4f43aee67da0 -r bbf5e1506c39 code_part1/OSTC_code_asm_part1/menu_reset.asm --- a/code_part1/OSTC_code_asm_part1/menu_reset.asm Thu Jul 05 11:25:32 2012 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu_reset.asm Sat Jul 07 09:09:55 2012 +0200 @@ -188,6 +188,8 @@ CF_DEFAULT CF_PERCENT, .4, .0, .100 ; CF62 pSCR O2 Drop CF_DEFAULT CF_INT8, .10, .0, .100 ; CF63 pSCR counterlung ratio + + ;---- BANK2 custom function defaults ------------------------------------- cf_default_table2: CF_DEFAULT CF_COLOR, d'74', 0, 0 ; CF64 color_inactive Color inactive: grey CF_DEFAULT CF_BOOL, 0, 0, 0 ; CF65 Show safety stop @@ -433,6 +435,14 @@ movwf EEADRH ; EEPROM BANK 1 movlw d'127' ; address of low byte of first custom function movwf EEADR + + movlw LOW cf_default_table1 ; Load PROM pointer. + movwf TBLPTRL,A + movlw HIGH cf_default_table1 + movwf TBLPTRH,A + movlw UPPER cf_default_table1 + movwf TBLPTRU,A + cf_bank1_loop: ; Did we already read another 32 (decimal) words or double-words ? @@ -447,6 +457,13 @@ movwf EEADRH ; EEPROM BANK 2 movlw d'127' ; address of low byte of first custom function movwf EEADR + + movlw LOW cf_default_table2 ; Load PROM pointer. + movwf TBLPTRL,A + movlw HIGH cf_default_table2 + movwf TBLPTRH,A + movlw UPPER cf_default_table2 + movwf TBLPTRU,A cf_bank2_loop: ; Did we already read another 32 (decimal) words or double-words ?