# HG changeset patch # User heinrichsweikamp # Date 1294406638 -3600 # Node ID e82e0df6d0eaf24d6f118816f8d2b7b57e471eef # Parent 8b75ba28d641a9703ac27d85205bf9f0806590c1 divemode gas fix diff -r 8b75ba28d641 -r e82e0df6d0ea code_part1/OSTC_code_asm_part1/pled_outputs.asm --- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm Fri Jan 07 03:01:02 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm Fri Jan 07 14:23:58 2011 +0100 @@ -975,7 +975,14 @@ ; Yes, display "Air" instead of 21/0 lfsr FSR2,letter OUTPUTTEXTH d'264' ;"Air " - clrf WREG + PUTC ' ' + clrf WREG ; Allow up to 5 chars to avoid + movff WREG,letter+5 ; collision with sat graphs + bcf leftbind + call word_processor + return + + movlw ' ' btfsc better_gas_available ;=1: A better gas is available and a gas change is advised in divemode movlw '*' movwf POSTINC2 @@ -989,7 +996,15 @@ PUTC '/' movff char_I_He_ratio,lo ; copy He ratio into lo output_8 - clrf WREG + PUTC ' ' + clrf WREG ; Allow up to 5 chars to avoid + movff WREG,letter+5 ; collision with sat graphs + bcf leftbind + call word_processor + return + + + movlw ' ' btfsc better_gas_available ;=1: A better gas is available and a gas change is advised in divemode movlw '*' movwf POSTINC2