comparison code_part1/OSTC_code_asm_part1/outputs.asm @ 804:7f3f79e53f66

BUGFIX: Show manually set O2 (Gas 6) correctly
author heinrichsweikamp
date Wed, 04 Feb 2015 20:18:34 +0100
parents a652b0ff4dcf
children c50296c3059e
comparison
equal deleted inserted replaced
803:fec91971e4b9 804:7f3f79e53f66
2884 2884
2885 STRCPY TXT_G6_3 2885 STRCPY TXT_G6_3
2886 read_int_eeprom d'24' ; Get Gas6 %O2 2886 read_int_eeprom d'24' ; Get Gas6 %O2
2887 movff EEDATA,lo 2887 movff EEDATA,lo
2888 bcf leftbind 2888 bcf leftbind
2889 movlw .100
2890 cpfseq lo ; 100% O2?
2891 bra DISP_divemode_set_xgas2 ; No
2892 STRCAT "100/0" ; Draw 100/0 manually
2893 bra DISP_divemode_set_xgas3
2894 DISP_divemode_set_xgas2:
2889 output_99 ; outputs into Postinc2! 2895 output_99 ; outputs into Postinc2!
2890 PUTC '/' 2896 PUTC '/'
2891 read_int_eeprom d'25' ; Get Gas6 %He 2897 read_int_eeprom d'25' ; Get Gas6 %He
2892 movff EEDATA,lo 2898 movff EEDATA,lo
2893 output_99 ; outputs into Postinc2! 2899 output_99 ; outputs into Postinc2!
2900 DISP_divemode_set_xgas3:
2894 call word_processor 2901 call word_processor
2895 DISPLAYTEXT .123 ; O2 + 2902 DISPLAYTEXT .123 ; O2 +
2896 DISPLAYTEXT .124 ; O2 - 2903 DISPLAYTEXT .124 ; O2 -
2897 DISPLAYTEXT .125 ; He + 2904 DISPLAYTEXT .125 ; He +
2898 DISPLAYTEXT .126 ; He - 2905 DISPLAYTEXT .126 ; He -