jojokatada
Full Member level 5
if portb high picbasic pro
hi could anyone help me to translate the subroutine in assembly to picbasic pro
i want to use pic16f877a and checking each bit of portb if it is high then porta corresponding bit set to high
here is the assembly subroutine
checking portb
btfsc portb, 0
bsf porta, 0
btfsc portb, 1
bsf porta, 1
btfsc portb, 2
bsf porta, 2
btfsc portb, 3
bsf porta, 3
return
appreciate for anyone could help
hi could anyone help me to translate the subroutine in assembly to picbasic pro
i want to use pic16f877a and checking each bit of portb if it is high then porta corresponding bit set to high
here is the assembly subroutine
checking portb
btfsc portb, 0
bsf porta, 0
btfsc portb, 1
bsf porta, 1
btfsc portb, 2
bsf porta, 2
btfsc portb, 3
bsf porta, 3
return
appreciate for anyone could help