/* testio.c - test IOPL functions */ #define INCL_DOS #include #define INPUT_PORT 0x2f8 #define OUTPUT_PORT 0x2f8 #define TEST_DATA 0x41 extern USHORT _Far16 _Pascal in_port(USHORT); extern void _Far16 _Pascal out_port(USHORT,USHORT); int main(void) { USHORT in_stuff; in_stuff = in_port (INPUT_PORT); out_port (OUTPUT_PORT,TEST_DATA); }