i wrote the program below that runs fine on a 16f84a, but i would like to port it over to a 12f629. i have no experience with this pic chip at all. help would be greatly appreciated.

i use it to send a positive pulse to a 2-coil latching relay using the same pushbutton.

push button on ra0 and rb0 pulses a "1" for about 1/2 second.(turns relay on)
push button on ra0 and rb1 pulses a "1" for about 1/2 second.(turns relay off)

i would also like to add an option of holding the same pushbutton down for a longer period of time, first, pulsing 1/2 second on rb0 .(turns relay on) and then go into a timer mode of about one hour and then pulsing 1/2 second on rb1..(turns relay off)

existing 16f84a program:

b0 var Byte
pb0 var PORTA.0

TRISB = %00000000

loop:
If pb0 = 1 and b0 = 0 Then one
If pb0 = 1 And b0= 1 Then two
Goto loop

one:
high 0
b0 =1
pause 2
low 0
goto loop

two:
low 0
high 1
b0 =0
pause 2
low 1
goto loop

end

thanks, in advance

mike