flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > How to determine argument-name dependent names for data

Author
Thread Post new topic Reply to topic
fasmotol



Joined: 09 Jun 2012
Posts: 2
fasmotol 09 Jun 2012, 16:00
Hi, folks.
Code:
macro some_macro string
{
      us#`string STRING_STRUCT ?
      ;...
}
    


Something like that raises an error. I expect:
(some_macro some_string)->(ussome_string is created).
How can I achieve desired result?
Post 09 Jun 2012, 16:00
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20621
Location: In your JS exploiting you and your system
revolution 09 Jun 2012, 16:06
Like this:
Code:
macro some_macro string
{
      us#string db `string
}
some_macro test    
Post 09 Jun 2012, 16:06
View user's profile Send private message Visit poster's website Reply with quote
fasmotol



Joined: 09 Jun 2012
Posts: 2
fasmotol 09 Jun 2012, 16:11
revolution, thanks, I'll try it.
U're the fastest fasm user, I suppose Smile Always give answer immediately after it appears.
Post 09 Jun 2012, 16:11
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.