diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 140:87a53efbb5ba

"beta" shown for beta versions noFly and Desat time only shown when > 0
author heinrichsweikamp
date Thu, 06 Jan 2011 18:12:15 +0100
parents dd4b899c56c1
children 622da16b768f
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Thu Jan 06 09:32:55 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Thu Jan 06 18:12:15 2011 +0100
@@ -1531,6 +1531,15 @@
 	return
 
 PLED_desaturation_time:	
+	movff		int_O_desaturation_time+0,lo
+	movff		int_O_desaturation_time+1,hi		; Copy
+	tstfsz		lo									; =0?
+	bra			PLED_desaturation_time2				; No!
+	tstfsz		hi									; =0?
+	bra			PLED_desaturation_time2				; No!
+	return											; Do not display Desat
+	
+PLED_desaturation_time2:
 	ostc_debug	'h'
 	WIN_TOP		.150
 	WIN_LEFT	.1
@@ -1557,6 +1566,15 @@
 	return
 
 PLED_nofly_time:	
+	movff		nofly_time+0,lo			
+	movff		nofly_time+1,hi					; Copy
+	tstfsz		lo								; =0?
+	bra			PLED_nofly_time2				; No!
+	tstfsz		hi								; =0?
+	bra			PLED_nofly_time2				; No!
+	return
+
+PLED_nofly_time2:
 	ostc_debug	'g'
 	WIN_TOP		.125
 	WIN_LEFT	.1
@@ -1717,7 +1735,7 @@
 	bsf		leftbind
 	output_99x
 	bcf		leftbind
-	PUTC    '/'
+	PUTC    '.'
 	movff	convert_value_temp+1,lo			;day
 	bra 	PLED_convert_date1_common		;year
 
@@ -1731,14 +1749,14 @@
 	bsf		leftbind
 	output_99x
 	bcf		leftbind
-	PUTC    '/'
+	PUTC    '.'
 	movff	convert_value_temp+0,lo			;month
 
 PLED_convert_date1_common:
 	bsf		leftbind
 	output_99x
 	bcf		leftbind
-	PUTC    '/'
+	PUTC    '.'
 	movff	convert_value_temp+2,lo			;year
 	bsf		leftbind
 	output_99x
@@ -1750,12 +1768,12 @@
 	bsf		leftbind
 	output_99x
 	bcf		leftbind
-    PUTC    '/'
+    PUTC    '.'
 	movff	convert_value_temp+0,lo			;month
 	bsf		leftbind
 	output_99x
 	bcf		leftbind
-    PUTC    '/'
+    PUTC    '.'
 	movff	convert_value_temp+1,lo			;day
 	bsf		leftbind
 	output_99x
@@ -1772,7 +1790,7 @@
 	bsf		leftbind
 	output_99x
 	bcf		leftbind
-    PUTC    '/'
+    PUTC    '.'
 	movff	convert_value_temp+1,lo			;day
 	bsf		leftbind
 	output_99x
@@ -1789,7 +1807,7 @@
 	bsf		leftbind
 	output_99x
 	bcf		leftbind
-    PUTC    '/'
+    PUTC    '.'
 	movff	convert_value_temp+0,lo			;month
 	bsf		leftbind
 	output_99x
@@ -2085,8 +2103,15 @@
 	bsf		leftbind
 	output_99x
 	bcf		leftbind
-	
 	call	word_processor
+
+	movlw	softwareversion_beta			; =1: Beta, =0: Release
+	decfsz	WREG,F
+	return									; Release version -> Return
+
+	call	PLED_warnings_color
+	DISPLAYTEXT		d'243'			; beta
+	call	PLED_standard_color
 	return
 
 PLED_divemode_menu_mask_first:			; Write Divemode menu1 mask