inpd.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 32 行
GML
32 行
.func inpd
#include <conio.h>
unsigned long inpd( int port );
.ixfunc2 '&PortIo' &func
.funcend
.desc begin
The &func function reads a double-word (four bytes) from the 80x86 hardware
port whose number is given by
.arg port.
.im portdesc
.im privity
.desc end
.return begin
The value returned is the double-word that was read.
.return end
.see begin
.seelist &function. inp inpd inpw outp outpd outpw
.see end
.exmp begin
#include <conio.h>
#define DEVICE 34
void main()
{
unsigned long transmitted;
.exmp break
transmitted = inpd( DEVICE );
}
.exmp end
.class Intel
.system
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?