comparison code_part1/OSTC_code_asm_part1/menu_battery.asm @ 382:f2d5d93b4ca3 64kByte Logbook

negative temperature in logbook and battery info menu
author heinrichsweikamp
date Wed, 15 Jun 2011 20:08:30 +0200
parents ceedf078b2d8
children 6e57b5bb98ce
comparison
equal deleted inserted replaced
381:c7142538050c 382:f2d5d93b4ca3
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 movlw d'3' 100 movlw d'3'
100 movwf ignore_digits 101 movwf ignore_digits
101 bsf leftbind ; left orientated output 102 bsf leftbind ; left orientated output
102 output_16dp d'2' 103 output_16dp d'2'
103 bcf leftbind 104 bcf leftbind
116 OUTPUTTEXT .121 ; Temp max: 117 OUTPUTTEXT .121 ; Temp max:
117 read_int_eeprom d'59' ; TEMP_max LOW 118 read_int_eeprom d'59' ; TEMP_max LOW
118 movff EEDATA,lo 119 movff EEDATA,lo
119 read_int_eeprom d'60' ; TEMP_max HIGH 120 read_int_eeprom d'60' ; TEMP_max HIGH
120 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
121 movlw d'3' 123 movlw d'3'
122 movwf ignore_digits 124 movwf ignore_digits
123 bsf leftbind ; left orientated output 125 bsf leftbind ; left orientated output
124 output_16dp d'2' 126 output_16dp d'2'
125 bcf leftbind 127 bcf leftbind