終終終終終終終終終終終終終終終終終終
�inport, inportb, outport, outportb� <DOS.H>
景景景景景景景景景景景景景景景景景景
� inport reads a word from a hardware port
� inportb reads a byte from a hardware port
� outport outputs a word to a hardware port
� outportb outputs a byte to a hardware port
Declaration:
� int inport(int portid);
� unsigned char inportb(int portid);
� void outport(int portid, int value);
� void outportb(int portid, unsigned char value);
Remarks:
� inport works just like the 80x86 instruction IN. It reads the low
byte of a word from portid, the high byte from portid + 2.
� inportb is a macro that reads a byte
� outport works just like the 80x86 instruction OUT. It writes the
low byte of value to portid, the high byte to portid + 1.
� outportb is a macro that writes value
Argument� What It Is
怩怩怩怩退怩怩怩怩怩怩怩怩怩怩怩怩怩怩怩怩怩怩怩怩怩怩怩怩
portid � Inport port that inport and inportb read from;
� outport port that outport and outportb write to
value � Word that outport writes to portid;
� byte that outportb writes to portid.
If you call inportb or outportb when DOS.H has been included, they are
treated as macros that expand to inline code.
If you don't include DOS.H, or if you do include DOS.H and #undef the
macro(s), you get the function(s) of the same name.
Return Value:
� inport and inportb return the value read
� outport and outportb do not return
Portability:
� DOS � UNIX � ANSI C � C++ Only �
� Yes � � � �
米怩怩虎怩怩怛怩怩怩怩虎怩怩怩怩征
See Also:
inp, inpw outp, outpw
Examples:
inport example inportb example outport example outportb example
没有合适的资源?快使用搜索试试~ 我知道了~
C语言时尚编程百例.rar
共322个文件
c:102个
exe:101个
bmp:100个
5星 · 超过95%的资源 需积分: 0 23 下载量 134 浏览量
2009-01-20
14:15:46
上传
评论 2
收藏 6.8MB RAR 举报
温馨提示
如果你认真去看,认真去分析,你将有收获,如果你仅仅是下载后放在那里,当做库存存着,那我建议你不要下载了,对你没用!
资源推荐
资源详情
资源评论
收起资源包目录
C语言时尚编程百例.rar (322个子文件)
SORTSUM.ASM 1023B
SHOW.ASM 627B
ADDUP.ASM 521B
INC.ASM 456B
100.avi 5.98MB
93.bmp 900KB
80.bmp 900KB
71.bmp 709KB
88.bmp 576KB
91.bmp 523KB
54.bmp 389KB
25.bmp 370KB
79.bmp 367KB
04.bmp 352KB
08.bmp 352KB
10.bmp 352KB
02.bmp 352KB
07.bmp 352KB
18.bmp 352KB
11.bmp 352KB
16.bmp 352KB
19.bmp 352KB
14.bmp 352KB
17.bmp 352KB
03.bmp 352KB
12.bmp 352KB
05.bmp 352KB
06.bmp 352KB
09.bmp 352KB
15.bmp 352KB
13.bmp 352KB
23.bmp 263KB
66.bmp 241KB
29.bmp 234KB
74.bmp 229KB
69.bmp 212KB
52.bmp 209KB
24.bmp 202KB
68.bmp 189KB
87.bmp 189KB
98.bmp 185KB
20.bmp 182KB
36.bmp 181KB
31.bmp 177KB
92.bmp 175KB
38.bmp 172KB
21.bmp 169KB
40.bmp 169KB
51.bmp 168KB
01.bmp 168KB
86.bmp 167KB
34.bmp 167KB
27.bmp 166KB
43.bmp 165KB
41.bmp 163KB
53.bmp 163KB
45.bmp 163KB
48.bmp 163KB
90.bmp 161KB
50.bmp 160KB
58.bmp 159KB
95.bmp 159KB
44.bmp 157KB
49.bmp 155KB
78.bmp 155KB
61.bmp 153KB
73.bmp 152KB
55.bmp 152KB
56.bmp 150KB
35.bmp 150KB
65.bmp 150KB
72.bmp 148KB
42.bmp 144KB
77.bmp 144KB
59.bmp 142KB
99.bmp 141KB
26.bmp 140KB
64.bmp 139KB
32.bmp 138KB
84.bmp 138KB
37.bmp 138KB
67.bmp 137KB
96.bmp 137KB
30.bmp 137KB
60.bmp 136KB
33.bmp 135KB
85.bmp 131KB
39.bmp 129KB
76.bmp 129KB
46.bmp 128KB
28.bmp 128KB
81.bmp 127KB
75.bmp 124KB
63.bmp 122KB
22.bmp 121KB
70.bmp 119KB
47.bmp 119KB
82.bmp 117KB
94.bmp 116KB
100.bmp 114KB
共 322 条
- 1
- 2
- 3
- 4
资源评论
- lw12279111292013-11-14看了一部分 还可以吧
- jinshuiloutaigod2012-11-11前段时间学习了时尚编程百例 资源内容和书本上的确实相同 挺好
liumang_D
- 粉丝: 45
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功