flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Question about sizeof. inside match

Author
Thread Post new topic Reply to topic
hopcode



Joined: 04 Mar 2008
Posts: 563
Location: Germany
hopcode
After i have read this thread, i have found the solution for this code, that compiles good now.
Code:
macro makestructB param@struct
{
        match paramB:structB,param@struct
       \{
    paramB structB
      db sizeof\#.\#structB dup (90) ; <-- ----------Why so ?
        \}
}

macro makestructA paramA,structA
{
        paramA structA
      db sizeof.#structA dup (90)
}

makestructA rect1,RECT
makestructB rect2:RECT
....
    


But I cannot understand why i must write, inside a match,
db sizeof\#.\#structB dup (90)
escaping, if i do not err, not only structB but
the "." too ?
in spite of, for example as in makestructA,
the simpler form
db sizeof.#structA dup (90) .

Please, help. Speak to me simple as it was to a baby. because i think that it is important and i would like to understand it.
Lot of thanks.
FASM,FASM,FASM Very Happy
Post 09 Jul 2008, 17:32
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17352
Location: In your JS exploiting you and your system
revolution
It is sufficient to put:
Code:
db sizeof.\#structB dup (90)    
You don't need the extra slash-hash.
Post 10 Jul 2008, 00:33
View user's profile Send private message Visit poster's website Reply with quote
hopcode



Joined: 04 Mar 2008
Posts: 563
Location: Germany
hopcode
Right revolution!. My error !! Embarassed
I was about to reinterpret all Fasm cryptomanual!!! Cool
Now i have the solution. You can find an application
with this solution in this thread.
Bye, and a lot, lot of thanks...
...
hopcode[mrk]
Post 10 Jul 2008, 03:53
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.