in theory, all bit set to input shouldn't be affected by a PORT write.