home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cdisk.zip / VDD / PIOOUT.C < prev    next >
C/C++ Source or Header  |  1993-02-24  |  576b  |  26 lines

  1. /* pioout.c    */
  2.  
  3. #include "mvdm.h"                       /* VDH services, etc.   */
  4. #include "pio.h"                        /* PIO specific         */
  5.  
  6. #pragma data_seg(CSWAP_DATA)
  7.  
  8. extern IOH Ioh;
  9.  
  10. #pragma alloc_text(CSWAP_TEXT,PIODataOut)
  11.  
  12. /* this routine is the data out trap entry point */
  13.  
  14. VOID HOOKENTRY PIODataOut(BYTE chartowrite,ULONG portaddr,PCRF pcrf)
  15. {
  16.      RequestDirect();
  17.  
  18.      /* disable port trapping */
  19.  
  20.      VDHSetIOHookState(current_VDM,DIGIO_BASE,3,&Ioh,0);
  21.  
  22.     outp(portaddr,chartowrite);      /*  write the char */     
  23.     return;
  24. }
  25.  
  26.