请教高手注解程序
typedef unsigned short ushort;typedef unsigned char uchar;
ushort inport( ushort portid )
{
_DX = portid;
__emit__( 0x66, 0xED );
return _AX;
}
void outport( ushort portid, ushort data )
{
_DX = portid;
_AX = data;
__emit__( 0x66, 0xEF );
}
uchar inportb( ushort portid )
{
_DX = portid;
__emit__( 0xEC );
return _AL;
}
void outportb( ushort portid, uchar data )
{
_DX = portid;
_AL = data;
__emit__( 0xEE ); }
void cli( void )
{
__emit__( 0xFA );
}
void sti( void )
{
__emit__( 0xFB );
}
#else
#error NOT FLAT memory model
#endif
请教高手,为何在运行时错误总指向上述红色代码。急...!在线等...