Almost it, i think it's also caused by Bit0, bit1 etc etc. Below my suggestion
Code:
        TRISA = 255
        TRISB = 240
        b0 var byte

start:
        b0 = PORTB
        if b0.4 = 0 then trigger
        goto start

trigger:
        pause 500
        b0 = PORTB
        if b0.5 = 1 then send
        goto start

send:
        b0 = PORTA
        if b0.4 = 1 then eleven
        PORTB = b0
        goto start

eleven:
        if b0.0 = 0 then ten
        PORTB = 11
        goto start

ten:
        PORTB = 10
        goto start
        end