Mercurial > public > mk2
changeset 181:0651d5dc3f42
1st. gas not grey in simulator
author | heinrichsweikamp |
---|---|
date | Sun, 06 Feb 2011 17:30:11 +0100 |
parents | 8aced3c7590c |
children | adadccc367a6 |
files | code_part1/OSTC_code_asm_part1/definitions.asm code_part1/OSTC_code_asm_part1/pled_outputs.asm |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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!
--- 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!