News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Macro defintions like C

Started by Shantanu Gadgil, August 25, 2006, 05:02:38 PM

Previous topic - Next topic

Shantanu Gadgil

Hi Pelle,

If I wanted to do this:
FIRST_NUMBER equ 100h
SECOND_NUMBER equ (FIRST_NUMBER << 2) (This will not work for now, of course  :) :) )


and so now I could use the SECOND_NUMBER as 400h and not as the string "(FIRST_NUMBER << 2)"

Is this already possible?

Regards,
Shantanu
To ret is human, to jmp divine!

Shantanu Gadgil

OK, scratch that...its already possible!!!

I just tried with shl in place of << and it works!  :U :U

Cheers,
Shantanu
To ret is human, to jmp divine!