OR the existing port register with the bit pattern of the ports you want to change.

i.e existing port state 01001010
required port state 11001010

OR-ing them results 11001010

note that only the FIRST bit changes the port state output, the remainder stay the same.