LEGION55>
Since you didn't show any code, it couldn't be considered as a problem itself.
Did you configured your I/O ports?
Are you reading incorrect or spurious values?
Do you write something to your port but you can't see anything?
Which I/O port or device are you using?
I think this task could be accomplished by reading the "Parallel Input/Output Control" of your device's Reference Manual combined by a good reading in addressing modes (INH, DIR will be a good starting).