Converting a piece of PIC code to Arduino

Thanks for your reply, sorry i forgot to mention it :
It's meant to bankswitch an eeprom.

The pic code is for a PIC12F629.