diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 559:c84ea647ff58

do not show gas switch stops in yellow when CF55=0
author heinrichsweikamp
date Tue, 21 Feb 2012 07:44:33 +0100
parents 880e98ecf1ea
children 7f5419d4157d
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Mon Feb 20 13:47:49 2012 +0100
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Tue Feb 21 07:44:33 2012 +0100
@@ -2598,11 +2598,18 @@
         WIN_LEFT .100
         
         btfss   lo,7                    ; Bit set ?
-        bra     PLED_decoplan_std_stop  ; No : Just an usual stop.
-
-        movlw   b'11111101'             ; Yellow.
-        call    PLED_set_color
-        bcf     lo,7                    ; and cleanup depth.
+        bra     PLED_decoplan_std_stop  ; No : Just an usual stop
+
+        bcf     lo,7                    ; cleanup depth
+		
+		GETCUSTOM8	d'55'				; Load gas switch [min] in wreg
+		tstfsz	WREG					; =0?
+		bra		PLED_decoplan_show_stop1; No: Show gas switch stop
+		bra     PLED_decoplan_std_stop  ; Yes: Just an usual stop
+		
+PLED_decoplan_show_stop1:		
+        movlw   color_yellow
+        call    PLED_set_color			; Show in yellow for gas switch
         bra     PLED_decoplan_nstd_stop
 
 PLED_decoplan_std_stop: