Converting a piece of PIC code to Arduino

Great, thanks for your help.

sets the data bits in val_GPIO to the output pins

How could I do that ?

Thanks again