Quote Originally Posted by mister_e
Code:
Main: 
    peek PORTA,B0
    if Bit1=1 then transmit ' iF PORTA.1=1 then transmit
    GOTO Main
The peek reads porta into B0 (you did not include where you have porta defined (unless PB has it defined.. I doubt it, maybe PBP does, I made an include to drop in my code since BP is not a complete product). B0 is byte 0 in the chip.

Now that it is in B0, you need to IF against B0. So you can AND it (as it is a byte not a bit) with %00000010.