Is this program correct? This should work? (blinking led)
 
#include "pic16f84.h"

void main()
{

    TRISB = 0;

    for (;;)
    {
        PORTB = 0;
        PORTB = 1;
    }
}