【发布时间】:2014-05-17 11:47:20
【问题描述】:
我正在使用 sasm ide。我的问题是如何打印浮点数。该程序执行成功,但没有显示任何数字。我的代码如下:
%include "io.inc"
section .data
val: dq a123.45
section .bss
res:resq 1
section .text
global CMAIN
CMAIN:
mov ebp, esp; for correct debugging
;write your code here
fld qword[val]
fsqrt
fst qword[res]
xor eax, eax
ret
【问题讨论】:
-
是的,但是如何显示浮点数,它没有显示任何东西,请告诉我如何显示浮点数
-
我没有看到任何提及您的目标操作系统。
-
请有人告诉我如何显示浮点数.......
-
使用
printf。我保证它会起作用。