You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A single hint word is used to disambiguate floating pointer parameters - float typically groks the size of the parameter and automagically does the right thing. This isn't sufficient in the case of immediate values - requiring the size to be specified for single precision:
invoke AddFloat,floatdword 2.0,floatdword 3.0,addr result
In many languages float is thought of as single precision, but the default is double precision in fasm2 parameter parsing - using dword explicitly states the size. word is not supported for registers, but works for parameter 5+.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A single hint word is used to disambiguate floating pointer parameters -
float
typically groks the size of the parameter and automagically does the right thing. This isn't sufficient in the case of immediate values - requiring the size to be specified for single precision:In many languages
float
is thought of as single precision, but the default is double precision in fasm2 parameter parsing - usingdword
explicitly states the size.word
is not supported for registers, but works for parameter 5+.Beta Was this translation helpful? Give feedback.
All reactions