Author Topic: sttructure macros  (Read 13868 times)

Pavel Skrylev

  • Guest
sttructure macros
« 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?

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: sttructure macros
« Reply #1 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

nobody

  • Guest
Re: sttructure macros
« Reply #2 on: November 01, 2006, 06:59:30 PM »
ma che cazzo stai a di?