comparison code_part1/OSTC_code_asm_part1/menu_battery.asm @ 790:53425d598585

NEW: Store useage timer in logbook header (Byte 54)
author heinrichsweikamp
date Thu, 28 Aug 2014 17:45:16 +0200
parents 91ae251d379f
children c50296c3059e
comparison
equal deleted inserted replaced
789:380a07e4fc15 790:53425d598585
75 bcf leftbind 75 bcf leftbind
76 STRCAT_PRINT TXT_VOLT1 76 STRCAT_PRINT TXT_VOLT1
77 77
78 WIN_TOP .119 78 WIN_TOP .119
79 lfsr FSR2,letter 79 lfsr FSR2,letter
80 OUTPUTTEXT .119 ; Lowest Battery at: 80
81 read_int_eeprom d'42' ; Month 81 STRCPY "On-Time: " ; On-Time in minutes:seconds
82 movff EEDATA,convert_value_temp+0 82 movff on_time_seconds+0,xC+0
83 read_int_eeprom d'43' ; Day 83 movff on_time_seconds+1,xC+1
84 movff EEDATA,convert_value_temp+1 84 movff on_time_seconds+2,xC+2
85 read_int_eeprom d'44' ; Year 85 clrf xC+4
86 movff EEDATA,convert_value_temp+2 86 movlw .60
87 call DISP_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2 87 movwf xB+0
88 clrf xB+1
89 call div32x16 ; xC:4 / xB:2 = xC+3:xC+2 with xC+1:xC+0 as remainder
90 movff xC+1,hi
91 movff xC+0,lo
92 bsf leftbind
93 output_16 ; full minutes
94 PUTC " "
95 OUTPUTTEXT .90 ; Minutes
88 call word_processor 96 call word_processor
97
98 ; OUTPUTTEXT .119 ; Lowest Battery at:
99 ; read_int_eeprom d'42' ; Month
100 ; movff EEDATA,convert_value_temp+0
101 ; read_int_eeprom d'43' ; Day
102 ; movff EEDATA,convert_value_temp+1
103 ; read_int_eeprom d'44' ; Year
104 ; movff EEDATA,convert_value_temp+2
105 ; call DISP_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2
106 ; call word_processor
89 107
90 WIN_TOP .147 108 WIN_TOP .147
91 lfsr FSR2,letter 109 lfsr FSR2,letter
92 OUTPUTTEXT .120 ; Temp min: 110 OUTPUTTEXT .120 ; Temp min:
93 read_int_eeprom d'54' ; TEMP_min LOW 111 read_int_eeprom d'54' ; TEMP_min LOW