Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/menu_battery.asm @ 621:e7b675c28896
2.29beta release
author | heinrichsweikamp |
---|---|
date | Sun, 05 Aug 2012 12:20:29 +0200 |
parents | ab2686087bce |
children | 6e456a6398e0 |
comparison
equal
deleted
inserted
replaced
620:963383a9b624 | 621:e7b675c28896 |
---|---|
49 movff EEDATA,hi | 49 movff EEDATA,hi |
50 bsf leftbind | 50 bsf leftbind |
51 output_16 | 51 output_16 |
52 STRCAT_PRINT ")" | 52 STRCAT_PRINT ")" |
53 | 53 |
54 WIN_TOP .65 | 54 WIN_TOP .63 |
55 lfsr FSR2,letter | 55 lfsr FSR2,letter |
56 OUTPUTTEXT .117 ; Last Complete at: | 56 OUTPUTTEXT .117 ; Last Complete at: |
57 read_int_eeprom d'47' ; Month | 57 read_int_eeprom d'47' ; Month |
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 |
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 PLED_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 .95 | 66 WIN_TOP .91 |
67 lfsr FSR2,letter | 67 lfsr FSR2,letter |
68 OUTPUTTEXT .118 ; Lowest Battery: | 68 OUTPUTTEXT .118 ; Lowest Battery: |
69 read_int_eeprom d'40' ; Batt LOW | 69 read_int_eeprom d'40' ; Batt LOW |
70 movff EEDATA,lo | 70 movff EEDATA,lo |
71 read_int_eeprom d'41' ; Batt HIGH | 71 read_int_eeprom d'41' ; Batt HIGH |
75 bsf leftbind | 75 bsf leftbind |
76 output_16dp d'2' | 76 output_16dp d'2' |
77 bcf leftbind | 77 bcf leftbind |
78 STRCAT_PRINT TXT_VOLT1 | 78 STRCAT_PRINT TXT_VOLT1 |
79 | 79 |
80 WIN_TOP .125 | 80 WIN_TOP .119 |
81 lfsr FSR2,letter | 81 lfsr FSR2,letter |
82 OUTPUTTEXT .119 ; Lowest Battery at: | 82 OUTPUTTEXT .119 ; Lowest Battery at: |
83 read_int_eeprom d'42' ; Month | 83 read_int_eeprom d'42' ; Month |
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 |
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 PLED_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 .155 | 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 |
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 PLED_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 .185 | 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 |
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 PLED_convert_date ; coverts into "DD/MM/YY" or "MM/DD/YY" or "YY/MM/DD" in postinc2 |
136 STRCAT_PRINT ") " | 136 STRCAT_PRINT ") " |
137 | |
138 WIN_TOP .203 | |
139 lfsr FSR2,letter | |
140 OUTPUTTEXT .228 ; Total Dives: | |
141 read_int_eeprom d'2' ; Total dives low | |
142 movff EEDATA,lo | |
143 read_int_eeprom d'3' ; Total dives high | |
144 movff EEDATA,hi | |
145 bsf leftbind ; left orientated output | |
146 output_16 | |
147 STRCAT_PRINT "" | |
137 | 148 |
138 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! | 149 call wait_switches ; Waits until switches are released, resets flag if button stays pressed! |
139 bcf menubit2 | 150 bcf menubit2 |
140 menu_battery_state_loop: | 151 menu_battery_state_loop: |
141 call check_switches_logbook | 152 call check_switches_logbook |