comparison code_part1/OSTC_code_asm_part1/menu_battery.asm @ 681:6e456a6398e0

Hardware4 support
author heinrichsweikamp
date Fri, 25 Jan 2013 18:00:49 +0100
parents e7b675c28896
children 91ae251d379f
comparison
equal deleted inserted replaced
680:c6220d340684 681:6e456a6398e0
22 ; last updated: 05/15/08 22 ; last updated: 05/15/08
23 ; known bugs: 23 ; known bugs:
24 ; ToDo: 24 ; ToDo:
25 25
26 menu_battery_state: 26 menu_battery_state:
27 call PLED_ClearScreen 27 call DISP_ClearScreen
28 call PLED_topline_box 28 call DISP_topline_box
29 WIN_INVERT .1 ; Init new Wordprocessor 29 WIN_INVERT .1 ; Init new Wordprocessor
30 DISPLAYTEXT .114 ; Battery Information 30 DISPLAYTEXT .114 ; Battery Information
31 WIN_INVERT .0 ; Init new Wordprocessor 31 WIN_INVERT .0 ; Init new Wordprocessor
32 32
33 WIN_TOP .35 33 WIN_TOP .35
58 movff EEDATA,convert_value_temp+0 58 movff EEDATA,convert_value_temp+0
59 read_int_eeprom d'48' ; Day 59 read_int_eeprom d'48' ; Day
60 movff EEDATA,convert_value_temp+1 60 movff EEDATA,convert_value_temp+1
61 read_int_eeprom d'49' ; Year 61 read_int_eeprom d'49' ; Year
62 movff EEDATA,convert_value_temp+2 62 movff EEDATA,convert_value_temp+2
63 call PLED_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2 63 call DISP_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2
64 call word_processor 64 call word_processor
65 65
66 WIN_TOP .91 66 WIN_TOP .91
67 lfsr FSR2,letter 67 lfsr FSR2,letter
68 OUTPUTTEXT .118 ; Lowest Battery: 68 OUTPUTTEXT .118 ; Lowest Battery:
84 movff EEDATA,convert_value_temp+0 84 movff EEDATA,convert_value_temp+0
85 read_int_eeprom d'43' ; Day 85 read_int_eeprom d'43' ; Day
86 movff EEDATA,convert_value_temp+1 86 movff EEDATA,convert_value_temp+1
87 read_int_eeprom d'44' ; Year 87 read_int_eeprom d'44' ; Year
88 movff EEDATA,convert_value_temp+2 88 movff EEDATA,convert_value_temp+2
89 call PLED_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2 89 call DISP_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2
90 call word_processor 90 call word_processor
91 91
92 WIN_TOP .147 92 WIN_TOP .147
93 lfsr FSR2,letter 93 lfsr FSR2,letter
94 OUTPUTTEXT .120 ; Temp min: 94 OUTPUTTEXT .120 ; Temp min:
95 read_int_eeprom d'54' ; TEMP_min LOW 95 read_int_eeprom d'54' ; TEMP_min LOW
96 movff EEDATA,lo 96 movff EEDATA,lo
97 read_int_eeprom d'55' ; TEMP_min HIGH 97 read_int_eeprom d'55' ; TEMP_min HIGH
98 movff EEDATA,hi 98 movff EEDATA,hi
99 call PLED_convert_signed_temperature ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required 99 call DISP_convert_signed_temperature ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required
100 movlw d'3' 100 movlw d'3'
101 movwf ignore_digits 101 movwf ignore_digits
102 bsf leftbind ; left orientated output 102 bsf leftbind ; left orientated output
103 output_16dp d'2' 103 output_16dp d'2'
104 bcf leftbind 104 bcf leftbind
107 movff EEDATA,convert_value_temp+0 107 movff EEDATA,convert_value_temp+0
108 read_int_eeprom d'57' ; Day 108 read_int_eeprom d'57' ; Day
109 movff EEDATA,convert_value_temp+1 109 movff EEDATA,convert_value_temp+1
110 read_int_eeprom d'58' ; Year 110 read_int_eeprom d'58' ; Year
111 movff EEDATA,convert_value_temp+2 111 movff EEDATA,convert_value_temp+2
112 call PLED_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2 112 call DISP_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2
113 STRCAT_PRINT ") " 113 STRCAT_PRINT ") "
114 114
115 WIN_TOP .175 115 WIN_TOP .175
116 lfsr FSR2,letter 116 lfsr FSR2,letter
117 OUTPUTTEXT .121 ; Temp max: 117 OUTPUTTEXT .121 ; Temp max:
118 read_int_eeprom d'59' ; TEMP_max LOW 118 read_int_eeprom d'59' ; TEMP_max LOW
119 movff EEDATA,lo 119 movff EEDATA,lo
120 read_int_eeprom d'60' ; TEMP_max HIGH 120 read_int_eeprom d'60' ; TEMP_max HIGH
121 movff EEDATA,hi 121 movff EEDATA,hi
122 call PLED_convert_signed_temperature ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required 122 call DISP_convert_signed_temperature ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required
123 movlw d'3' 123 movlw d'3'
124 movwf ignore_digits 124 movwf ignore_digits
125 bsf leftbind ; left orientated output 125 bsf leftbind ; left orientated output
126 output_16dp d'2' 126 output_16dp d'2'
127 bcf leftbind 127 bcf leftbind
130 movff EEDATA,convert_value_temp+0 130 movff EEDATA,convert_value_temp+0
131 read_int_eeprom d'62' ; Day 131 read_int_eeprom d'62' ; Day
132 movff EEDATA,convert_value_temp+1 132 movff EEDATA,convert_value_temp+1
133 read_int_eeprom d'63' ; Year 133 read_int_eeprom d'63' ; Year
134 movff EEDATA,convert_value_temp+2 134 movff EEDATA,convert_value_temp+2
135 call PLED_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2 135 call DISP_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2
136 STRCAT_PRINT ") " 136 STRCAT_PRINT ") "
137 137
138 WIN_TOP .203 138 WIN_TOP .203
139 lfsr FSR2,letter 139 lfsr FSR2,letter
140 OUTPUTTEXT .228 ; Total Dives: 140 OUTPUTTEXT .228 ; Total Dives: