网站首页 百科词库1 百科词库2
函数名: inportb
功 能: 返回从指定硬件端口读入的一个8位二进制(一个字节)。
用 法: int inportb(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;
}
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。