home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cdisk.zip / IOPL / TESTIO.C < prev    next >
C/C++ Source or Header  |  1992-12-29  |  345b  |  23 lines

  1. //
  2. //  testio.c - test IOPL functions 
  3. //
  4.  
  5. #define INCL_DOS
  6. #include <os2.h>
  7.  
  8. #define INPUT_PORT  0x2f8
  9. #define OUTPUT_PORT 0x2f8
  10. #define TEST_DATA   0x41
  11.  
  12. extern far pascal in_port();
  13. extern far pascal out_port();
  14.  
  15. int main()
  16. {
  17.      USHORT in_stuff;
  18.  
  19.      in_stuff = in_port (INPUT_PORT);
  20.      out_port (OUTPUT_PORT,TEST_DATA);
  21.  
  22. }
  23.