diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 181:0651d5dc3f42

1st. gas not grey in simulator
author heinrichsweikamp
date Sun, 06 Feb 2011 17:30:11 +0100
parents 8aced3c7590c
children f720ce017244
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Sun Feb 06 10:16:03 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Sun Feb 06 17:30:11 2011 +0100
@@ -3022,7 +3022,14 @@
 	rrcf	EEDATA			; roll flags into carry
 	decfsz	lo,F			; max. 5 times...
 	bra		PLED_simdata_screen2_loop1
-	
+
+	read_int_eeprom		d'33'	; First gas (1-5)?
+	movf	hi,W				; Current gas in WREG
+	cpfseq	EEDATA				; Is equal first gas?
+	bra		PLED_simdata_screen2_loop2	; No
+	bra		PLED_simdata_white	; Yes
+
+PLED_simdata_screen2_loop2:
 	btfss	STATUS,C		; test inactive flag
 	bra		PLED_simdata_grey	; Is inactive!