# HG changeset patch # User heinrichsweikamp # Date 1297009811 -3600 # Node ID 0651d5dc3f4287a2f3cdc2b1172f550197badd54 # Parent 8aced3c7590c3f3ca4b062af5c49403f1bd28095 1st. gas not grey in simulator diff -r 8aced3c7590c -r 0651d5dc3f42 code_part1/OSTC_code_asm_part1/definitions.asm --- a/code_part1/OSTC_code_asm_part1/definitions.asm Sun Feb 06 10:16:03 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/definitions.asm Sun Feb 06 17:30:11 2011 +0100 @@ -32,7 +32,7 @@ ; International extension. Selecting messages source: ; Language (No define -> english_text.asm) -#DEFINE FRENCH ; Use french_text.asm +;#DEFINE FRENCH ; Use french_text.asm ;#DEFINE GERMAN ; Use german_text.asm #DEFINE logbook_profile_version 0x20 ; Do not touch! diff -r 8aced3c7590c -r 0651d5dc3f42 code_part1/OSTC_code_asm_part1/pled_outputs.asm --- 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!