Mercurial > public > mk2
changeset 143:e82e0df6d0ea
divemode gas fix
author | heinrichsweikamp |
---|---|
date | Fri, 07 Jan 2011 14:23:58 +0100 |
parents | 8b75ba28d641 |
children | 4c961f1a1536 |
files | code_part1/OSTC_code_asm_part1/pled_outputs.asm |
diffstat | 1 files changed, 17 insertions(+), 2 deletions(-) [+] |
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