comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 136:20b2c77a6cd2

active gas divemode display fix
author heinrichsweikamp
date Wed, 05 Jan 2011 17:28:23 +0100
parents 5c8569f95d7e
children dd4b899c56c1
comparison
equal deleted inserted replaced
135:5c8569f95d7e 136:20b2c77a6cd2
975 tstfsz hi ; Air? (He=0%) 975 tstfsz hi ; Air? (He=0%)
976 bra PLED_active_gas_divemode4 ; No! 976 bra PLED_active_gas_divemode4 ; No!
977 977
978 ; Yes, display "Air" instead of 21/0 978 ; Yes, display "Air" instead of 21/0
979 lfsr FSR2,letter 979 lfsr FSR2,letter
980 OUTPUTTEXTH d'264' ;"Air " 980 OUTPUTTEXTH d'264' ;"Air "
981 movlw ' ' 981 clrf WREG
982 btfsc better_gas_available ;=1: A better gas is available and a gas change is advised in divemode 982 btfsc better_gas_available ;=1: A better gas is available and a gas change is advised in divemode
983 movlw '*' 983 movlw '*'
984 movwf POSTINC2 984 movwf POSTINC2
985 call word_processor 985 call word_processor
986 return 986 return
990 bsf leftbind ; left orientated output 990 bsf leftbind ; left orientated output
991 output_8 ; O2 ratio is still in "lo" 991 output_8 ; O2 ratio is still in "lo"
992 PUTC '/' 992 PUTC '/'
993 movff char_I_He_ratio,lo ; copy He ratio into lo 993 movff char_I_He_ratio,lo ; copy He ratio into lo
994 output_8 994 output_8
995 movlw ' ' 995 clrf WREG
996 btfsc better_gas_available ;=1: A better gas is available and a gas change is advised in divemode 996 btfsc better_gas_available ;=1: A better gas is available and a gas change is advised in divemode
997 movlw '*' 997 movlw '*'
998 movwf POSTINC2 998 movwf POSTINC2
999 bcf leftbind 999 bcf leftbind
1000 call word_processor 1000 call word_processor