Si, lo que necesitas es la librería io.dll, yo tengo un programa muy practico el cual te puede servir si lo quieres ponte en contactó.
alejandrombsmok@hotmail.com
'PortOut - Outputs a byte to the specified port.
'PortWordOut - Outputs a word (16-bits) to the specified port.
'PortDWordOut - Outputs a double word (32-bits) to the specified port.
'PortIn - Reads a byte from the specified port.
'PortWordIn - Reads a word (16-bits) from the specified port.
'PortDWordIn - Reads a double word (32-bits) from the specified port.
'SetPortBit - Sets the bit of the specified port.
'ClrPortBit - Clears the bit of the specified port.
'NotPortBit - Nots (inverts) the bit of the specified port.
'GetPortBit - Returns the state of the specified bit.
'RightPortShift - Shifts the specified port to the right. The LSB is
' returned, and the value passed becomes the MSB.
'LeftPortShift - Shifts the specified port to the left. The MSB is
' returned, and the value passed becomes the LSB.
'IsDriverInstalled - Returns non-zero if io.dll is installed and
' functioning. The primary purpose of this function
' is to ensure that the kernel mode driver for
' NT/2000/XP has been installed and is accessible.