So, antoher time, there is DlPortio and or UserPort that do the job for you !
for example : **broken link removed**
(DlPortIo offer function that can be use to acess IoPort, UserPort permit ALL program to simply use inp(), inportb(), outportb(), and so on, to all process)