inp.gml

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

GML
30
字号
.func inp
#include <conio.h>
unsigned int inp( int port );
.ixfunc2 '&PortIo' &func
.funcend
.desc begin
The &func function reads one byte 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 byte that was read.
.return end
.see begin
.seelist &function. inp inpd inpw outp outpd outpw
.see end
.exmp begin
#include <conio.h>

void main()
  {
    /* turn off speaker */
    outp( 0x61, inp( 0x61 ) & 0xFC );
  }
.exmp end
.class Intel
.system

⌨️ 快捷键说明

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