How can I read or send data to GAMEPORT

I tried it some way but I did not made it.Could somebody help me???????
Toni