comparison code_part1/OSTC_code_asm_part1/menu_battery.asm @ 123:6a94f96e9cea

The big cleanup, again.
author JeanDo
date Thu, 30 Dec 2010 23:45:20 +0100
parents 96a35aeda5f2
children ba109a7948df
comparison
equal deleted inserted replaced
122:3003a8040b78 123:6a94f96e9cea
40 movff EEDATA,lo 40 movff EEDATA,lo
41 read_int_eeprom d'51' 41 read_int_eeprom d'51'
42 movff EEDATA,hi 42 movff EEDATA,hi
43 bsf leftbind 43 bsf leftbind
44 output_16 44 output_16
45 movlw ' ' 45 STRCAT " ("
46 movwf POSTINC2
47 movlw '('
48 movwf POSTINC2
49 read_int_eeprom d'52' ; Get complete cycles 46 read_int_eeprom d'52' ; Get complete cycles
50 movff EEDATA,lo 47 movff EEDATA,lo
51 read_int_eeprom d'53' 48 read_int_eeprom d'53'
52 movff EEDATA,hi 49 movff EEDATA,hi
53 bsf leftbind 50 bsf leftbind
54 output_16 51 output_16
55 movlw ')' 52 STRCAT_PRINT ")"
56 movwf POSTINC2
57 call word_processor
58 53
59 WIN_TOP .65 54 WIN_TOP .65
60 lfsr FSR2,letter 55 lfsr FSR2,letter
61 OUTPUTTEXT .117 ; Last Complete at: 56 OUTPUTTEXT .117 ; Last Complete at:
62 read_int_eeprom d'47' ; Month 57 read_int_eeprom d'47' ; Month
78 movlw d'1' 73 movlw d'1'
79 movwf ignore_digits 74 movwf ignore_digits
80 bsf leftbind 75 bsf leftbind
81 output_16dp d'2' 76 output_16dp d'2'
82 bcf leftbind 77 bcf leftbind
83 movlw 'V' 78 STRCAT_PRINT "V"
84 movwf POSTINC2
85 call word_processor
86 79
87 WIN_TOP .125 80 WIN_TOP .125
88 lfsr FSR2,letter 81 lfsr FSR2,letter
89 OUTPUTTEXT .119 ; Lowest Battery at: 82 OUTPUTTEXT .119 ; Lowest Battery at:
90 read_int_eeprom d'42' ; Month 83 read_int_eeprom d'42' ; Month
106 movlw d'3' 99 movlw d'3'
107 movwf ignore_digits 100 movwf ignore_digits
108 bsf leftbind ; left orientated output 101 bsf leftbind ; left orientated output
109 output_16dp d'2' 102 output_16dp d'2'
110 bcf leftbind 103 bcf leftbind
111 movlw '°' 104 STRCAT "° ("
112 movwf POSTINC2
113 movlw ' '
114 movwf POSTINC2
115 movlw '('
116 movwf POSTINC2
117 read_int_eeprom d'56' ; Month 105 read_int_eeprom d'56' ; Month
118 movff EEDATA,convert_value_temp+0 106 movff EEDATA,convert_value_temp+0
119 read_int_eeprom d'57' ; Day 107 read_int_eeprom d'57' ; Day
120 movff EEDATA,convert_value_temp+1 108 movff EEDATA,convert_value_temp+1
121 read_int_eeprom d'58' ; Year 109 read_int_eeprom d'58' ; Year
122 movff EEDATA,convert_value_temp+2 110 movff EEDATA,convert_value_temp+2
123 call PLED_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2 111 call PLED_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2
124 movlw ')' 112 STRCAT_PRINT ") "
125 movwf POSTINC2
126 movlw ' '
127 movwf POSTINC2
128 call word_processor
129 113
130 WIN_TOP .185 114 WIN_TOP .185
131 lfsr FSR2,letter 115 lfsr FSR2,letter
132 OUTPUTTEXT .121 ; Temp max: 116 OUTPUTTEXT .121 ; Temp max:
133 read_int_eeprom d'59' ; TEMP_max LOW 117 read_int_eeprom d'59' ; TEMP_max LOW
137 movlw d'3' 121 movlw d'3'
138 movwf ignore_digits 122 movwf ignore_digits
139 bsf leftbind ; left orientated output 123 bsf leftbind ; left orientated output
140 output_16dp d'2' 124 output_16dp d'2'
141 bcf leftbind 125 bcf leftbind
142 movlw '°' 126 STRCAT "° ("
143 movwf POSTINC2
144 movlw ' '
145 movwf POSTINC2
146 movlw '('
147 movwf POSTINC2
148 read_int_eeprom d'61' ; Month 127 read_int_eeprom d'61' ; Month
149 movff EEDATA,convert_value_temp+0 128 movff EEDATA,convert_value_temp+0
150 read_int_eeprom d'62' ; Day 129 read_int_eeprom d'62' ; Day
151 movff EEDATA,convert_value_temp+1 130 movff EEDATA,convert_value_temp+1
152 read_int_eeprom d'63' ; Year 131 read_int_eeprom d'63' ; Year
153 movff EEDATA,convert_value_temp+2 132 movff EEDATA,convert_value_temp+2
154 call PLED_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2 133 call PLED_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2
155 movlw ')' 134 STRCAT_PRINT ") "
156 movwf POSTINC2
157 movlw ' '
158 movwf POSTINC2
159 call word_processor
160 135
161 menu_battery_state5: 136 menu_battery_state5:
162 btfss SWITCH2 137 btfss SWITCH2
163 bra menu_battery_state5 138 bra menu_battery_state5
164 139