comparison code_part1/OSTC_code_asm_part1/menu_logbook.asm @ 373:8781d1cf96d8 64kByte Logbook

added GF_hi, GF_lo and deco model to dive header
author Heinrichsweikamp
date Fri, 10 Jun 2011 17:47:52 +0200
parents 160b3216b335
children 6ee9c849ad92
comparison
equal deleted inserted replaced
372:d8e83ef49962 373:8781d1cf96d8
962 clrf average_divesecs+0 962 clrf average_divesecs+0
963 clrf average_divesecs+1 ; clear counting registers for next line 963 clrf average_divesecs+1 ; clear counting registers for next line
964 964
965 movlw color_grey 965 movlw color_grey
966 call PLED_set_color ; Make this configurable? 966 call PLED_set_color ; Make this configurable?
967 movlw d'75' 967 movlw d'76'
968 movff WREG,win_top 968 movff WREG,win_top
969 incf timeout_counter3,W ; draw one line to right to make sure it's the background of the profile 969 incf timeout_counter3,W ; draw one line to right to make sure it's the background of the profile
970 movff WREG,win_leftx2 ; Left border (0-159) 970 movff WREG,win_leftx2 ; Left border (0-159)
971 movlw d'164' 971 movlw d'163'
972 movff WREG,win_height 972 movff WREG,win_height
973 movlw d'1' 973 movlw d'1'
974 movff WREG,win_width ; "Window" Width 974 movff WREG,win_width ; "Window" Width
975 call PLED_box ; Inputs: win_top, win_leftx2, win_height, win_width, win_color1, win_color2 975 call PLED_box ; Inputs: win_top, win_leftx2, win_height, win_width, win_color1, win_color2
976 976
1219 movlw HIGH 0x100 1219 movlw HIGH 0x100
1220 movwf EEADRH 1220 movwf EEADRH
1221 movlw 0xAA 1221 movlw 0xAA
1222 movwf EEDATA 1222 movwf EEDATA
1223 call write_eeprom ; write 0xAA to indicate the logbook is already converted 1223 call write_eeprom ; write 0xAA to indicate the logbook is already converted
1224 return 1224 ;return
1225 ; convert logbook: 1225 ; convert logbook:
1226 ; Step 1: Copy 32k from 0xFE + 1 with bank switching to bank1 1226 ; Step 1: Copy 32k from 0xFE + 1 with bank switching to bank1
1227 ; Step 2: Copy 32k from bank1 to bank0 1227 ; Step 2: Copy 32k from bank1 to bank0
1228 ; Step 3: delete bank1 1228 ; Step 3: delete bank1
1229 call get_free_EEPROM_location ; Searches 0xFD, 0xFD, 0xFE and sets Pointer to 0xFE 1229 call get_free_EEPROM_location ; Searches 0xFD, 0xFD, 0xFE and sets Pointer to 0xFE