The MASM Forum Archive 2004 to 2012

Specialised Projects => Pelle's Macro Assembler Development => Topic started by: Shantanu Gadgil on August 25, 2006, 05:02:38 PM

Title: Macro defintions like C
Post by: Shantanu Gadgil on August 25, 2006, 05:02:38 PM
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
Title: Re: Macro defintions like C
Post by: Shantanu Gadgil on August 25, 2006, 05:29:07 PM
OK, scratch that...its already possible!!!

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

Cheers,
Shantanu