Hi,

I was looking at some "asm" code on the coding page. I saw some code that looked rather qbasic-ish:

.IF eax!=INVALID_HANDLE_VALUE
...

All that IF business, what is it? I thought that ASM was good old fashion:

mov ebx,eax
inc ebx
....

What sort of ASM allows IF statements?

/sharpe
Posted on 2004-04-11 09:34:48 by sharpe
it's masm. The idea is that it makes code more readable without any code generation deficiencies.
Posted on 2004-04-11 09:42:06 by f0dder
I see. So it's not pure ASM?
Is that the purpose of MASM32, to make ASM more digestible?
Posted on 2004-04-11 09:44:35 by sharpe
You can do it the old fashioned way, or you can use the built-in directives like .IF, or you can make up your own functionality with macros. Whatever suits your fancy.

If you want to be an ASM purist you can, but you have the option to eliminate much of the tedium if you so desire. Also take a look at some other compilers like FASM (http://flatassembler.net/) and see if you might prefer it.
Posted on 2004-04-11 10:01:40 by iblis
OK super, I will have a look around.

Thanks!
Posted on 2004-04-11 10:23:27 by sharpe