【发布时间】:2020-07-05 11:05:50
【问题描述】:
我需要计算这段代码之后 x 的值是多少。
Section data
db 0,0,0,0,0,0,0,0x80,0,0x40
Section text
Fld tword [x]
答案应该是 8,但我得到了 3。
Sign: 0
Mantisa: calcukated from the part of 0x40 0 which is 1000000000000000 give us after calculate : 2
然后我们从分数代码中得到 1.5
结果是 1.5 * 2 = 3
【问题讨论】:
标签: assembly floating-point x87