comparison 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
comparison
equal deleted inserted replaced
558:575f1a65ab5a 559:c84ea647ff58
2596 PLED_decoplan_show_stop: 2596 PLED_decoplan_show_stop:
2597 ;---- Print depth ---------------------------------------------------- 2597 ;---- Print depth ----------------------------------------------------
2598 WIN_LEFT .100 2598 WIN_LEFT .100
2599 2599
2600 btfss lo,7 ; Bit set ? 2600 btfss lo,7 ; Bit set ?
2601 bra PLED_decoplan_std_stop ; No : Just an usual stop. 2601 bra PLED_decoplan_std_stop ; No : Just an usual stop
2602 2602
2603 movlw b'11111101' ; Yellow. 2603 bcf lo,7 ; cleanup depth
2604 call PLED_set_color 2604
2605 bcf lo,7 ; and cleanup depth. 2605 GETCUSTOM8 d'55' ; Load gas switch [min] in wreg
2606 tstfsz WREG ; =0?
2607 bra PLED_decoplan_show_stop1; No: Show gas switch stop
2608 bra PLED_decoplan_std_stop ; Yes: Just an usual stop
2609
2610 PLED_decoplan_show_stop1:
2611 movlw color_yellow
2612 call PLED_set_color ; Show in yellow for gas switch
2606 bra PLED_decoplan_nstd_stop 2613 bra PLED_decoplan_nstd_stop
2607 2614
2608 PLED_decoplan_std_stop: 2615 PLED_decoplan_std_stop:
2609 call PLED_standard_color 2616 call PLED_standard_color
2610 2617