NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: Pavel Skrylev on May 28, 2005, 06:02:48 PM

Title: sttructure macros
Post by: Pavel Skrylev on May 28, 2005, 06:02:48 PM
Is there way to create macro in order to use < and > structure macro as there is realized in tasm?
Title: Re: sttructure macros
Post by: Frank Kotler on May 28, 2005, 10:38:12 PM
Well, I don't *think* you can do anything quite like Masm/Tasm's "<1, 2, 3, 4>" syntax. I've never seen it anyway. Since Nasm doesn't "remember" types/sizes, there's a problem there.

There are systems a little less ugly than "at foo, dd 42". There *may* be something in the Xstruc package (available in the "contributions" section). In the "asmutils" package (linuxassembly.org or asm.sf.net), there are some structure-initialization macros - called "bstruc" or "brstruc", I think - written by Brian Raiter, that might do what you want (closer, anyway). I know you're not doing Linux, but *some* of those macros could easily be used (or adapted) to work on any OS (Konstantin's "_mov" macros are another example).

I'm not a heavy macro-user, so I don't really know what's available...

Best,
Frank
Title: Re: sttructure macros
Post by: nobody on November 01, 2006, 06:59:30 PM
ma che cazzo stai a di?