Float data example using Masm

三世轮回 提交于 2020-01-15 03:28:11

问题


Can somebody give me an example how to define a float number or constant in data section of MASM? Or at least some information about it...


回答1:


I think it's done with

.data
   myVar REAL4  1.0f

.code

Floating point values are REAL4, REAL8 or REAL10 in Masm.
Expressions (such as #define myConst 1.0f) are done with myConst EQU 1.0

These are not specific to any section.



来源:https://stackoverflow.com/questions/13703907/float-data-example-using-masm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!