一些汇编指令

http://homepage.mac.com/randyhyde/webster.cs.ucr.edu/www.artofasm.com/index.html

http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/toc.html

资料很不错。


mov eax,dword ptr [edx]----从edx这个地址取dword(4byte)放到eax里面。


float操作

fld dword ptr [esp+48h] ----从esp+48h取32bit的float值到stack上。

fld st(i) ----把st(i)中的值push到float register stack上。

st是float专用的register,一共8个。

fxch register:exchange value on top of register stack with register。一些操作只能针对stack top才能进行。

fstp dword ptr [esp+1Ch] ----把stack顶端的值存到esp+1ch指向的内存地址。

fnstcw word ptr [esp+10h] ----把fpu register的值存到一个通用register里

fistp dword ptr [esp+40h] ----把stack顶端的80bitfloat转成int(16,32bit...)然后存到esp+40h地址里面。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值