3

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...

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Vanguard
  • 129
  • 1
  • 11

1 Answers1

6

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.

Aki Suihkonen
  • 19,144
  • 1
  • 36
  • 57