diff code_part1/OSTC_code_asm_part1/divemode.asm @ 179:77ab44108c07

BUGFIX: Inactive gases greyed-out in Simulator results BUGFIX: "Better Gas" now works for Gas 4 and Gas 5, as well
author Heinrichsweikamp
date Sun, 06 Feb 2011 09:37:07 +0100
parents 7f3e1bf588bc
children 8aced3c7590c
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Fri Feb 04 23:31:47 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Sun Feb 06 09:37:07 2011 +0100
@@ -931,6 +931,7 @@
 	bra		check_gas_change5		; Yes, skip depth check
 check_gas_change4x:	
 	read_int_eeprom		d'31'		; read gas_change_depth
+	movlw	d'3'
 	cpfsgt	EEDATA					; Change depth>3m?
 	bra		check_gas_change5		; No, Change depth not deep enough, skip!
 	movf	xC+0,W					; load depth in m into WREG
@@ -951,6 +952,7 @@
 	bra		check_gas_change6		; Yes, skip depth check
 check_gas_change5x:	
 	read_int_eeprom		d'32'		; read gas_change_depth
+	movlw	d'3'
 	cpfsgt	EEDATA					; Change depth>3m?
 	bra		check_gas_change6		; No, Change depth not deep enough, skip!
 	movf	xC+0,W					; load depth in m into WREG