include 16f84_4 include jlib port_a_direction = all_input port_b_direction = all_output port_b = 0 forever loop If port_a >= 2 then pin_b0 = high end if end loop