I/O PORTS

Dear,
I need your help about...I'm programing by asm,
I need to use the outputs ports to control lcd numbers. i don't know how to do to prepair the port to do output port. I don't understand the port configuration and usage manual 14587 page 100