How to do port I/O in 32-bit programs