Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/divemode.asm @ 603:530a5c994ca2
remove safety stop when <3m
author | heinrichsweikamp |
---|---|
date | Mon, 02 Jul 2012 10:40:06 +0200 |
parents | 76b85952b9cd |
children | ec2cfd4b748b |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm Fri Jun 29 08:16:35 2012 +0200 +++ b/code_part1/OSTC_code_asm_part1/divemode.asm Mon Jul 02 10:40:06 2012 +0200 @@ -395,7 +395,7 @@ movwf sub_b+0 movlw HIGH safety_stop_reset movwf sub_b+1 - call sub16 ; sub_c = sub_a - sub_b + call subU16 ; sub_c = sub_a - sub_b btfss neg_flag bra reset_safety_stop ; Below 10m, reset safety stop @@ -408,7 +408,7 @@ movwf sub_b+0 movlw HIGH safety_stop_end movwf sub_b+1 - call sub16 ; sub_c = sub_a - sub_b + call subU16 ; sub_c = sub_a - sub_b btfsc neg_flag bra delete_safety_stop ; Above 3m, remove safety stop @@ -421,7 +421,7 @@ movwf sub_b+0 movlw HIGH safety_stop_start movwf sub_b+1 - call sub16 ; sub_c = sub_a - sub_b + call subU16 ; sub_c = sub_a - sub_b btfsc neg_flag bra acivate_safety_stop ; Above 5m, activate safety stop @@ -433,9 +433,8 @@ return delete_safety_stop: - bcf show_safety_stop ; Clear flag clrf safety_stop_countdown ; reset timer - return ; Done. + bra reset_safety_stop2 ; Remove saftestop from display reset_safety_stop: movlw safety_stop_length ;[s]