comparison 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
comparison
equal deleted inserted replaced
180:8aced3c7590c 181:0651d5dc3f42
3020 movff hi,lo ; copy gas number 3020 movff hi,lo ; copy gas number
3021 PLED_simdata_screen2_loop1: 3021 PLED_simdata_screen2_loop1:
3022 rrcf EEDATA ; roll flags into carry 3022 rrcf EEDATA ; roll flags into carry
3023 decfsz lo,F ; max. 5 times... 3023 decfsz lo,F ; max. 5 times...
3024 bra PLED_simdata_screen2_loop1 3024 bra PLED_simdata_screen2_loop1
3025 3025
3026 read_int_eeprom d'33' ; First gas (1-5)?
3027 movf hi,W ; Current gas in WREG
3028 cpfseq EEDATA ; Is equal first gas?
3029 bra PLED_simdata_screen2_loop2 ; No
3030 bra PLED_simdata_white ; Yes
3031
3032 PLED_simdata_screen2_loop2:
3026 btfss STATUS,C ; test inactive flag 3033 btfss STATUS,C ; test inactive flag
3027 bra PLED_simdata_grey ; Is inactive! 3034 bra PLED_simdata_grey ; Is inactive!
3028 3035
3029 tstfsz lo_temp ; Test change depth=0? 3036 tstfsz lo_temp ; Test change depth=0?
3030 bra PLED_simdata_white ; Is not zero 3037 bra PLED_simdata_white ; Is not zero