Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 665:259e4c1bf3c2
grey-out TTS and ceiling after gas change (until new plan is ready)
author | heinrichsweikamp |
---|---|
date | Wed, 14 Nov 2012 12:39:39 +0100 |
parents | ef198c1669f1 |
children | 3282581fe178 |
comparison
equal
deleted
inserted
replaced
664:9c13bf8a3033 | 665:259e4c1bf3c2 |
---|---|
602 iorwf WREG,F | 602 iorwf WREG,F |
603 btfss STATUS,Z | 603 btfss STATUS,Z |
604 return ; Return is status <> 0 | 604 return ; Return is status <> 0 |
605 | 605 |
606 ; Check if deco stops are necessary ? | 606 ; Check if deco stops are necessary ? |
607 bcf decoplan_invalid ; The decoplan is valid | |
607 movff char_O_first_deco_depth,wait_temp ; copy ceiling to temp register | 608 movff char_O_first_deco_depth,wait_temp ; copy ceiling to temp register |
608 tstfsz wait_temp ; Ceiling<0m? | 609 tstfsz wait_temp ; Ceiling<0m? |
609 bra calc_deko_divemode3 ; Yes! | 610 bra calc_deko_divemode3 ; Yes! |
610 | 611 |
611 btfsc dekostop_active ; Already in nodeco mode ? | 612 btfsc dekostop_active ; Already in nodeco mode ? |
1995 clrf average_depth_hold_total+1 | 1996 clrf average_depth_hold_total+1 |
1996 clrf average_depth_hold_total+2 | 1997 clrf average_depth_hold_total+2 |
1997 clrf average_depth_hold_total+3 ; Clear Non-Resettable Average | 1998 clrf average_depth_hold_total+3 ; Clear Non-Resettable Average |
1998 bcf depth_greater_100m ; clear flag | 1999 bcf depth_greater_100m ; clear flag |
1999 ; setf last_diluent ; to be displayed after first calculation (range: 0 to 100 [%]) | 2000 ; setf last_diluent ; to be displayed after first calculation (range: 0 to 100 [%]) |
2000 bcf dekostop_active | 2001 bcf dekostop_active |
2002 bcf decoplan_invalid | |
2001 bcf is_bailout ;=1: CC mode, but bailout active! | 2003 bcf is_bailout ;=1: CC mode, but bailout active! |
2002 bcf better_gas_available ;=1: A better gas is available and a gas change is advised in divemode | 2004 bcf better_gas_available ;=1: A better gas is available and a gas change is advised in divemode |
2003 bcf tts_extra_time ;=1: Compute TTS if extra time spent at current depth | 2005 bcf tts_extra_time ;=1: Compute TTS if extra time spent at current depth |
2004 bcf show_safety_stop ;=1: Show the safety stop | 2006 bcf show_safety_stop ;=1: Show the safety stop |
2005 clrf safety_stop_countdown ; Clear count-down | 2007 clrf safety_stop_countdown ; Clear count-down |