diff code_part1/OSTC_code_asm_part1/divemode.asm @ 74:a1ccb92b59cd

1.72beta release
author heinrichsweikamp
date Mon, 15 Nov 2010 15:19:24 +0100
parents 6beb680a6130
children 35d947d7a6e7
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/divemode.asm	Sun Nov 14 20:45:39 2010 +0100
+++ b/code_part1/OSTC_code_asm_part1/divemode.asm	Mon Nov 15 15:19:24 2010 +0100
@@ -816,6 +816,10 @@
 	clrf		xB+1
 	call		mult16x16				; char_I_O2_ratio * p_amb/10
 
+; Check very high ppO2 manually
+	tstfsz		xC+2					; char_I_O2_ratio * p_amb/10 > 65536, ppO2>6,55Bar?
+	bra			check_ppO2_bail2		; Yes, display Value!
+
 ; Check if ppO2 should be displayed
 	movff		xC+0,sub_b+0
 	movff		xC+1,sub_b+1
@@ -840,6 +844,8 @@
 	btfss		neg_flag
 	bra			check_ppO2_0		; Not too high
 
+check_ppO2_bail2:
+	bsf			ppO2_show_value		; set flag if required
 	bsf			ppO2_warn_value		; set flag 
 	movlw		d'5'				; Type of Alarm
 	movwf		AlarmType			; Copy to Alarm Register