BSF TRISB,2 CLRF TRISC BCF PORTD,3 MOVLW 0x45 AGAIN BTFSS PORTB,2 BRA AGAIN MOVWF PORTC BSF PORTD,3 BCF PORTD,3