home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cdisk.zip
/
VDD
/
PIOOUT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-24
|
576b
|
26 lines
/* pioout.c */
#include "mvdm.h" /* VDH services, etc. */
#include "pio.h" /* PIO specific */
#pragma data_seg(CSWAP_DATA)
extern IOH Ioh;
#pragma alloc_text(CSWAP_TEXT,PIODataOut)
/* this routine is the data out trap entry point */
VOID HOOKENTRY PIODataOut(BYTE chartowrite,ULONG portaddr,PCRF pcrf)
{
RequestDirect();
/* disable port trapping */
VDHSetIOHookState(current_VDM,DIGIO_BASE,3,&Ioh,0);
outp(portaddr,chartowrite); /* write the char */
return;
}