Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 143:e82e0df6d0ea
divemode gas fix
author | heinrichsweikamp |
---|---|
date | Fri, 07 Jan 2011 14:23:58 +0100 |
parents | 8b75ba28d641 |
children | 55a763d514ed |
line wrap: on
line diff
--- 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