Reading digital inputs

Yes, I tried and it worked. I mean, if the input pins are defined by pinMode it realy works.
However, I'm trying to configure the port by direct access on the registers, and I didn't
succeed yet. The reason why I need to configure the registers to input is that my app
needs lots of pins, and I must have to mutiplex them. Sometimes the port act as
output, sometimes the same port serve as input. (In fact, I want to use an external sram module of 1 Mbtyte, IS62WV51216BLL chip). Useless to say that access time is critical,
which explains why I need direct port access either to output (I already made it) as to input (not yet).
I'll keep trying :D. Helps are welcome.