Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/menu_reset.asm @ 609:bbf5e1506c39
2.27beta
author | heinrichsweikamp |
---|---|
date | Sat, 07 Jul 2012 09:09:55 +0200 |
parents | c3336f944e53 |
children | 3ab53b57f879 |
line wrap: on
line diff
--- 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 ?