HEy.
what is teh equvalent of casting in masm to c++?
thx
Posted on 2004-08-31 22:28:30 by ReVeR
there is no variable casting in Masm.

C/C++ Syntax uses Casting to 'distinguish' between variables types.
but in masm you don't need too.
Posted on 2004-09-01 00:27:47 by wizzra
Actually there *is* casting in masm - if you're using the high-level ".if" stuff and need to do signed compares. Take a look at the code output from:


.if eax < 0
mov eax, 10
.endif
.if sdword ptr eax < 0
mov eax, 10
.endif


...and then of course there's "this register points to a structure" kind of typecasting..
Posted on 2004-09-01 05:10:56 by f0dder