diff code_part1/OSTC_code_asm_part1/menu_reset.asm @ 27:29341afd2060

NEW: Depth, CNS, GF, ppO2 and Velocity are Color-coded NEW: CF43: Depth [mBar] for color-code display NEW: CF44: CNS [%] for color-code display NEW: CF45: GF [%] for color-code display NEW: CF46: ppO2 [cBar] for color-code display NEW: CF47: Velocity [m/min] for color-code display
author heinrichsweikamp
date Sat, 15 May 2010 17:58:55 +0200
parents 99512945c7a1
children e01e6428d316
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_reset.asm	Sat May 15 10:03:04 2010 +0200
+++ b/code_part1/OSTC_code_asm_part1/menu_reset.asm	Sat May 15 17:58:55 2010 +0200
@@ -257,9 +257,16 @@
 #DEFINE	color_warnings				d'224'		; 8Bit		Color Warnings: Red
 
 #DEFINE	show_seconds_divemode		d'0'		; 1Bit 		=1 Show the seconds in Divemode
-#DEFINE	flip_display_default		d'0'		; 1Bit		=1 Flip Display
-#DEFINE	use_ppo2_screen_default		d'0'		; 1Bit		=1 Use alternative outputs for ppO2 sensor
-#DEFINE	replace_temp_with_avr_depth d'0'		; 1Bit		=1 Show (resetable) average Depth instead of temperature
+#DEFINE	not_used_cf39_binary		d'0'		; 1Bit		=1 Flip Display
+#DEFINE	not_used_cf40_binary		d'0'		; 1Bit		=1 Use alternative outputs for ppO2 sensor
+#DEFINE	start_with_stopwatch		d'0'		; 1Bit		=1 start with stopwatch
+#DEFINE	blink_gas_divemode 			d'0'		; 1Bit		=1 Show (resetable) average Depth instead of temperature
+
+#DEFINE	color_warn_depth_mBar		d'13000'	; 15Bit		Warn depths
+#DEFINE	color_warn_cns_percent		d'101'		; 8Bit		Warn-%
+#DEFINE	color_warn_gf_percent		d'101'		; 8Bit		Warn-%
+#DEFINE	color_warn_ppo2_cbar		d'161'		; 8Bit		ppO2 warn
+#DEFINE	color_warn_celocity_mmin	d'15'		; 8Bit		warn at xx m/min
 
 	movlw	d'127'					; address of low byte of first custom function
 	movwf	EEADR
@@ -396,27 +403,36 @@
 	movlw	show_seconds_divemode
 	rcall	reset_customfunction	; saves default and current value
 
-	movlw	flip_display_default
+	movlw	not_used_cf39_binary
 	rcall	reset_customfunction	; saves default and current value
 
-	movlw	use_ppo2_screen_default	
+	movlw	not_used_cf40_binary	
 	rcall	reset_customfunction	; saves default and current value
 
-	movlw	replace_temp_with_avr_depth	
+	movlw	start_with_stopwatch
+	rcall	reset_customfunction	; saves default and current value
+
+	movlw	blink_gas_divemode	
 	rcall	reset_customfunction	; saves default and current value
 
-	movlw	d'0'
+	movlw	HIGH	color_warn_depth_mBar
+	movwf	hi
+	bsf		hi,7					; 15Bit value
+	movlw	LOW		color_warn_depth_mBar
 	rcall	reset_customfunction	; saves default and current value
-	movlw	d'0'
-	rcall	reset_customfunction	; saves default and current value
-	movlw	d'0'
+
+	movlw	color_warn_cns_percent
 	rcall	reset_customfunction	; saves default and current value
-	movlw	d'0'
+
+	movlw	color_warn_gf_percent
 	rcall	reset_customfunction	; saves default and current value
-	movlw	d'0'
+
+	movlw	color_warn_ppo2_cbar
 	rcall	reset_customfunction	; saves default and current value
-	movlw	d'0'
+
+	movlw	color_warn_celocity_mmin
 	rcall	reset_customfunction	; saves default and current value
+
 	movlw	d'0'
 	rcall	reset_customfunction	; saves default and current value
 	movlw	d'0'