Mercurial > public > mk2
diff 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 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/start.asm Tue Jan 25 01:02:35 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/start.asm Wed Jan 26 19:19:02 2011 +0100 @@ -149,14 +149,20 @@ clrf flag14 clrf flag15 - bsf flag1,0 ; Should we set win_flip_screen ? + ; Should we set win_flip_screen ? + bsf flag1,0 ; Precondition to yes clrf EEADRH ; Reset EEADRH read_int_eeprom d'1' movlw .7 - cpfsgt EEDATA ; >2048? + cpfsgt EEDATA ; serial > 2048 (Mk2n hardware) ? bcf flag1,0 + incf EEDATA,W ; serial == 65535 (emulation) ? + btfsc STATUS,Z + bcf flag1,0 movff flag1,win_flags ; store in Bank0 register clrf flag1 ; Clear flag1 (again) + + ; Should we disable sleep (hardware emulator) movlw .0 cpfsgt EEDATA ; >256 bsf nsm ; NO-SLEEP-MODE : for hardware debugging