#ifdef __cplusplus
extern "C" {
#endif
int _Cdecl _outp( unsigned short port, int databyte );
unsigned short _Cdecl _outpw( unsigned short port, unsigned short dataword );
int _Cdecl _inp( unsigned short port );
unsigned short _Cdecl _inpw( unsigned short port );
#ifdef __cplusplus
}
#endif
#pragma intrinsic( _outp, _outpw, _inp, _inpw )
#define outbyte(port,value) _outp((unsigned short)(port), (int)(value) )
#define outhword(port,value)_outpw((unsigned short)(port), (unsigned short)(value))
#define inbyte(port) (unsigned char )_inp( (unsigned short)(port) )
#define inhword(port) (unsigned short)_inpw( (unsigned short)(port) )
|