标题:如何在内嵌汇编中将两个 int 型的数乘法运算出的结果保留小数
只看楼主
eternuii
Rank: 1
等 级:新手上路
威 望:1
帖 子:27
专家分:0
注 册:2014-10-22
得分:0 
程序代码:
          fild a; //a,b为有符号数
        fidiv b;
        fstp qword ptr c;

        push dword ptr c+4;
        push dword ptr c;
        lea eax, message3;
        push eax;
        call printf;
        add esp, 12;
2014-11-26 20:12



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-439134-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.106725 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved