Converting a piece of PIC code to Arduino

If you want to duplicate the operation of the PIC, it is absolutely essential to first understand what that program is doing, which is to set certain pins to certain values.

Consult the 12F679 data sheet, section 3.1, to learn about the function of the TRISIO register and how that sets up input and output pins.