Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 384:904863f96582 64kByte Logbook
Work-Around for "Reset all" overwriting 0x00 to 0x04 in EEPROM Bank1
author | heinrichsweikamp |
---|---|
date | Sat, 18 Jun 2011 11:26:22 +0200 |
parents | f2d5d93b4ca3 |
children | ab962c4b19d6 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_logbook.asm Fri Jun 17 00:13:36 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu_logbook.asm Sat Jun 18 11:26:22 2011 +0200 @@ -1274,14 +1274,13 @@ movlw color_red call PLED_set_color ; Set to Red DISPLAYTEXTH d'303' ; Please wait! - movlw LOW 0x100 - movwf EEADR - movlw HIGH 0x100 + clrf EEADR + movlw d'1' movwf EEADRH movlw 0xAA movwf EEDATA call write_eeprom ; write 0xAA to indicate the logbook is already converted -;return + clrf EEADRH ; Restore EEADRH ; convert logbook: ; Step 1: Copy 32k from 0xFE + 1 with bank switching to bank1 ; Step 2: Copy 32k from bank1 to bank0