diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 63:fee7c62b4de1

1.71beta - clock in divemode (CF39)
author heinrichsweikamp
date Wed, 29 Sep 2010 15:25:53 +0200
parents 2972a06b0785
children e8756eba54ee
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Mon Sep 20 21:51:18 2010 +0200
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Wed Sep 29 15:25:53 2010 +0200
@@ -557,6 +557,31 @@
 	WIN_FONT 	FT_SMALL
 	return
 
+PLED_diveclock:
+	GETCUSTOM8	d'39'			; =1: Show clock in Divemode
+	movwf	lo
+	movlw	d'1'
+	cpfseq	lo					; =1?
+	return						; No, Done.
+
+	btfsc	menubit	; is the Dive mode menu displayed?
+	return			; Yes
+
+	WIN_TOP		.2
+	WIN_LEFT	.64
+	WIN_FONT 	FT_SMALL
+	WIN_INVERT	.0					; Init new Wordprocessor
+	call	PLED_standard_color
+	lfsr	FSR2,letter
+	movff	hours,lo
+	output_99x
+	movlw	':'
+	movwf	POSTINC2
+	movff	mins,lo
+	output_99x
+	call	word_processor
+	return
+
 PLED_clock:
 	ostc_debug	'c'