inpw.gml

来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 32 行

GML
32
字号
.func inpw
#include <conio.h>
unsigned int inpw( int port );
.ixfunc2 '&PortIo' &func
.funcend
.desc begin
The &func function reads a word (two 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 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 int transmitted;
.exmp break
    transmitted = inpw( DEVICE );
  }
.exmp end
.class Intel
.system

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?