comparison code_part1/OSTC_code_asm_part1/start.asm @ 153:17de42ab02b6

realtime clock defaults
author heinrichsweikamp
date Thu, 13 Jan 2011 09:05:45 +0100
parents 8b75ba28d641
children a52ba692ad7f
comparison
equal deleted inserted replaced
152:e5f1cfec8113 153:17de42ab02b6
131 bcf LED_red 131 bcf LED_red
132 bcf LED_blue ; all LEDs off 132 bcf LED_blue ; all LEDs off
133 GETCUSTOM8 d'48' ; time correction value 133 GETCUSTOM8 d'48' ; time correction value
134 movff WREG, time_correction_value ; store in Bank0 register 134 movff WREG, time_correction_value ; store in Bank0 register
135 135
136 GETCUSTOM8 d'63' ; OLED flip_screen flag(s).
137 movff WREG,win_flags ; store in Bank0 register
138
139 clrf flag1 ; clear all flags 136 clrf flag1 ; clear all flags
140 clrf flag2 137 clrf flag2
141 clrf flag3 138 clrf flag3
142 clrf flag4 139 clrf flag4
143 clrf flag5 140 clrf flag5
149 clrf flag11 146 clrf flag11
150 clrf flag12 147 clrf flag12
151 clrf flag13 148 clrf flag13
152 clrf flag14 149 clrf flag14
153 clrf flag15 150 clrf flag15
151
152 bsf flag1,0
153 clrf EEADRH ; Reset EEADRH
154 read_int_eeprom d'1'
155 movlw .7
156 cpfsgt EEDATA ; >2048?
157 bcf flag1,0
158 movff flag1,win_flags ; store in Bank0 register
159 clrf flag1 ; Clear flag1 (again)
160 movlw .39
161 cpfslt EEDATA ; >10000
162 bsf nsm ; For hardware debugging
163
154 call gassetup_sort_gaslist ; Sorts Gaslist according to change depth 164 call gassetup_sort_gaslist ; Sorts Gaslist according to change depth
155 call PLED_boot ; PLED boot (Incl. Clear Screen!) 165 call PLED_boot ; PLED boot (Incl. Clear Screen!)
156 WIN_TOP .0 166 WIN_TOP .0
157 WIN_LEFT .0 167 WIN_LEFT .0
158 WIN_FONT FT_SMALL 168 WIN_FONT FT_SMALL