inportb
函数名:inportb
功 能: 返回从指定硬件端口读入的一个8位二进制(一个字节)。
用 法: intinportb(int port);
程序例:
#include <stdio.h>
#include <dos.h>
int main(void)
{
int value ;
int port =0x210;
value=inportb(port);
printf("port 0x%x sent Value is%d
", port,value );
return 0;
}
函数名:inportb
功 能: 返回从指定硬件端口读入的一个8位二进制(一个字节)。
用 法: intinportb(int port);
程序例:
#include <stdio.h>
#include <dos.h>
int main(void)
{
int value ;
int port =0x210;
value=inportb(port);
printf("port 0x%x sent Value is%d
", port,value );
return 0;
}