comparison code_part1/OSTC_code_asm_part1/start.asm @ 169:e26f49674956

Merge decoplan display for both GF and Buhlmann models. + Add CF(54) to reverse deco plan display order. + Clean state machine to faster redisplay in divemode. Fix don't flip screen for soft emulation.
author JeanDo
date Wed, 26 Jan 2011 19:19:02 +0100
parents cb055a7d75f3
children f15e804ff67f
comparison
equal deleted inserted replaced
168:494587193f5d 169:e26f49674956
147 clrf flag12 147 clrf flag12
148 clrf flag13 148 clrf flag13
149 clrf flag14 149 clrf flag14
150 clrf flag15 150 clrf flag15
151 151
152 bsf flag1,0 ; Should we set win_flip_screen ? 152 ; Should we set win_flip_screen ?
153 bsf flag1,0 ; Precondition to yes
153 clrf EEADRH ; Reset EEADRH 154 clrf EEADRH ; Reset EEADRH
154 read_int_eeprom d'1' 155 read_int_eeprom d'1'
155 movlw .7 156 movlw .7
156 cpfsgt EEDATA ; >2048? 157 cpfsgt EEDATA ; serial > 2048 (Mk2n hardware) ?
157 bcf flag1,0 158 bcf flag1,0
159 incf EEDATA,W ; serial == 65535 (emulation) ?
160 btfsc STATUS,Z
161 bcf flag1,0
158 movff flag1,win_flags ; store in Bank0 register 162 movff flag1,win_flags ; store in Bank0 register
159 clrf flag1 ; Clear flag1 (again) 163 clrf flag1 ; Clear flag1 (again)
164
165 ; Should we disable sleep (hardware emulator)
160 movlw .0 166 movlw .0
161 cpfsgt EEDATA ; >256 167 cpfsgt EEDATA ; >256
162 bsf nsm ; NO-SLEEP-MODE : for hardware debugging 168 bsf nsm ; NO-SLEEP-MODE : for hardware debugging
163 169
164 call gassetup_sort_gaslist ; Sorts Gaslist according to change depth 170 call gassetup_sort_gaslist ; Sorts Gaslist according to change depth