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