diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 152:e5f1cfec8113

* for better gas again
author heinrichsweikamp
date Wed, 12 Jan 2011 14:38:24 +0100
parents fc699a7460e6
children 54cc1346ac15
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Mon Jan 10 20:03:30 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Wed Jan 12 14:38:24 2011 +0100
@@ -980,8 +980,15 @@
     movff   WREG,letter+5		; collision with sat graphs
 	bcf		leftbind
 	call	word_processor
+	rcall	PLED_active_gas_divemode_better_gas	; show *, if required
 	return
 
+PLED_active_gas_divemode_better_gas:
+	WIN_TOP		.192
+	WIN_LEFT	.42
+	WIN_FONT 	FT_SMALL
+	call	PLED_standard_color
+	lfsr	FSR2,letter
 	movlw	' '
 	btfsc	better_gas_available	;=1: A better gas is available and a gas change is advised in divemode
 	movlw	'*'
@@ -1001,19 +1008,9 @@
     movff   WREG,letter+5		; collision with sat graphs
 	bcf		leftbind
 	call	word_processor
+	rcall	PLED_active_gas_divemode_better_gas	; show *, if required
 	return
 
-
-	movlw	' '
-	btfsc	better_gas_available	;=1: A better gas is available and a gas change is advised in divemode
-	movlw	'*'
-	movwf	POSTINC2
-	bcf		leftbind
-	call	word_processor
-	return
-
-
-
 PLED_display_decotype_surface:
 	WIN_LEFT	.85
 	WIN_FONT 	FT_SMALL