Hi, irob:
From the time reset asserts (or power is applied) until you write the DDR, the pins are inputs, and might float wherever they please.
The only way that I know to make them behave during reset is to use either a pull-up or pull-down resistor. 10k is my favorite value, but it depends on what is being driven by the pin.
My experience is that it is usually the not-yet-driven input that determines in which direction the net floats, due to leakage current.