diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 168:494587193f5d

Use 16bits for TTS sum. + Display in divemode as 16bits. + Display in decoplanning as 16bits.
author JeanDo
date Tue, 25 Jan 2011 01:02:35 +0100
parents cb055a7d75f3
children e26f49674956
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Mon Jan 24 23:31:57 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Tue Jan 25 01:02:35 2011 +0100
@@ -470,17 +470,16 @@
 	ostc_debug	'x'		; Sends debug-information to screen if debugmode active
 	
 	WIN_TOP		.136
-	WIN_LEFT	.119
+	WIN_LEFT	.140 - 6*7 - 4          ; let space for sign + 5 digits + '
 	WIN_FONT 	FT_MEDIUM
-	WIN_INVERT	.0					; Init new Wordprocessor
+	WIN_INVERT	.0					    ; Init new Wordprocessor
+
 	call	PLED_standard_color
 	lfsr	FSR2,letter
-	movff	char_O_ascenttime,lo		; complete ascend time
-	movlw	d'199'							; limit display of total ascend time to 99mins....
-	cpfslt	lo								; skip if 199 (WREG) > lo
-	movwf	lo
-	bcf		leftbind
-	output_8
+	movff	int_O_ascenttime+0,lo       ; complete ascend time
+	movff	int_O_ascenttime+1,hi       ; on 16bits
+	bcf     leftbind
+	output_16
 	STRCAT_PRINT    "'"
 
 PLED_display_deko1: