diff 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
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/outputs.asm	Fri Jan 30 13:39:05 2015 +0100
+++ b/code_part1/OSTC_code_asm_part1/outputs.asm	Wed Feb 04 20:18:34 2015 +0100
@@ -2886,11 +2886,18 @@
 	read_int_eeprom	d'24'			; Get Gas6 %O2
 	movff	EEDATA,lo
 	bcf		leftbind
+    movlw   .100
+    cpfseq  lo                      ; 100% O2?
+    bra     DISP_divemode_set_xgas2 ; No
+    STRCAT  "100/0"                 ; Draw 100/0 manually
+    bra     DISP_divemode_set_xgas3
+DISP_divemode_set_xgas2:
 	output_99					; outputs into Postinc2!
     PUTC    '/'
 	read_int_eeprom	d'25'			; Get Gas6 %He
 	movff	EEDATA,lo
 	output_99					; outputs into Postinc2!
+DISP_divemode_set_xgas3:
 	call	word_processor
 	DISPLAYTEXT	.123			; O2 +
 	DISPLAYTEXT	.124			; O2 -