# HG changeset patch # User heinrichsweikamp # Date 1334950323 -7200 # Node ID 80a1d2d5a9ee963660c5e142abfc1d343f6ce07a # Parent 7f5419d4157de9101329d3e66bb2a71a21fbafd4 timeout display when deco stops are violated diff -r 7f5419d4157d -r 80a1d2d5a9ee code_part1/OSTC_code_asm_part1/divemode.asm --- a/code_part1/OSTC_code_asm_part1/divemode.asm Sat Apr 14 12:25:30 2012 +0200 +++ b/code_part1/OSTC_code_asm_part1/divemode.asm Fri Apr 20 21:32:03 2012 +0200 @@ -1400,7 +1400,19 @@ incf timeout_counter,F movlw d'0' addwfc timeout_counter2,F ; timeout is 15bits - GETCUSTOM15 d'2' ; diveloop_timeout + + GETCUSTOM15 d'2' ; diveloop_timeout -> lo:hi + + btfss dekostop_active ; Is a deco stop displayed? + bra timeout_divemode1 ; No, use normal CF02 timeout + + ; Yes, use 10minutes counter + movlw LOW .600 + movwf lo + movlw HIGH .600 + movwf hi + +timeout_divemode1: movff lo,sub_a+0 movff hi,sub_a+1 movff timeout_counter, sub_b+0 @@ -1523,7 +1535,9 @@ bra set_dive_modes2 ; too shallow (rel_pressure