Running LED using PIC16F84A

can someone help me in programming our PIC16F84A, we need to make a program that will show only a three output like a traffic light,..but Im not quite familiar in programming this. I examined a 7 output LED program but i cant figure out what to changed.. I also want to changed the delay for each LED and then go back to the start of the program...Thnx

;****set up portA and portB****
bsf status,5 ;switch to bank1 to set up ports
movlw h'00'
movwf trisb ;portB is all output
movlw h'00'
movwf trisa ;portA is all output
bcf status,5 ;switch back to bank0 to use ports

Instead of trying to jump in with both feet and back-engineer an existing piece of code to meet your needs, which can be both daunting and confusing, you should really start at the beginning and understand how a PIC works internally, how pins are controlled and how the registers work. Start with this tutorial, which I found very instructive when I was first getting into them:

The important thing is to understand the internal workings of the uC and then you can use whatever language you feel comfortable with. There are assemblers and compilers for languages such as C and BASIC for the whole range of PIC chips. Starting off with assemblers is a good idea, however, because it forces you to get down to the hardware level and think about your logic and what it needs to do.