免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5384 | 回复: 9
打印 上一主题 下一主题

哪位有AT&T指令手册啊 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-31 09:41 |只看该作者 |倒序浏览
看LINUX内核 碰到很多这类指令
像btsl btrl 都不大理解 想找个手册好对着看

论坛徽章:
0
2 [报告]
发表于 2007-05-31 09:46 |只看该作者
请在置顶的 [CPU与编译器]版 资源贴里找。

论坛徽章:
0
3 [报告]
发表于 2007-05-31 09:54 |只看该作者
原帖由 mik 于 2007-5-31 09:46 发表于 2楼  
请在置顶的 版 资源贴里找。


这里的进去都是E文的,偶的英文不大好不知道哪个才是
希望版主辛苦点 帮忙选个

论坛徽章:
0
4 [报告]
发表于 2007-05-31 10:00 |只看该作者
  看不到3楼的吗?

Linux Assembly

http://asm.sourceforge.net/


看不懂E文,实在没办法了,你想有中文的,可没那么容易找

论坛徽章:
0
5 [报告]
发表于 2007-05-31 10:23 |只看该作者
没有这种

("btsl %1,%2:"0" (0),"r" (nr),"m" (*(addr)));

然后再解释btsl干了什么 同时影响了哪些标志位(REG)

论坛徽章:
0
6 [报告]
发表于 2007-05-31 10:31 |只看该作者
原帖由 xiongce 于 2007-5-31 10:23 发表于 5楼  
没有这种

("btsl %1,%2:"0" (0),"r" (nr),"m" (*(addr)));

然后再解释btsl干了什么 同时影响了哪些标志位(REG)


我劝你还是看看 Intel  手册吧

论坛徽章:
0
7 [报告]
发表于 2007-05-31 10:35 |只看该作者
BTS         ---- Bit Test And Set

Copies a bit, specified by bit index in a register or 8-bit immediate value (second operand), from a bit
string (first operand), also called the bit base, to the carry flag (CF) of the rFLAGS register, and then
sets the bit in the bit string to 1.
If the bit base operand is a register, the instruction uses the modulo 16, 32, or 64 (depending on the
operand size) of the bit index to select a bit in the register.
If the bit base operand is a memory location, bit 0 of the byte at the specified address is the bit base of
the bit string. If the bit index is in a register, the instruction selects a bit position relative to the bit base
in the range –263 to +263 – 1 if the operand size is 64, –231 to +231 – 1, if the operand size is 32, and
–215 to +215 – 1 if the operand size is 16. If the bit index is in an immediate value, the bit selected is
that value modulo 16, 32, or 64, depending on the operand size.

论坛徽章:
0
8 [报告]
发表于 2007-05-31 10:43 |只看该作者
再解释一下吧:

btsl $8, %eax

将 %eax 的第 BIT8 复制到 CF 标志位,然后将 %eax 的 BIT8 置为 1 。
只影响 CF 标志位,其它标志位未定义。

论坛徽章:
0
9 [报告]
发表于 2007-05-31 10:51 |只看该作者
400多的E文手册 实在不是短期内能消化的啊
有没有中文版的 下载地址阿
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP