and:
Code:
IF txbyte.bit0 = 1 THEN
PORTB.1 = 1
ELSE
PORTB.1 = 0
ENDIF
should be replaced with:

Code:
PORTB.1 =  txbyte.bit0
While still in BASIC.