flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Question about sizeof. inside match |
Author |
|
hopcode 09 Jul 2008, 17:32
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 |
|||
09 Jul 2008, 17:32 |
|
revolution 10 Jul 2008, 00:33
It is sufficient to put:
Code: db sizeof.\#structB dup (90) |
|||
10 Jul 2008, 00:33 |
|
hopcode 10 Jul 2008, 03:53
Right revolution!. My error !!
I was about to reinterpret all Fasm cryptomanual!!! 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] |
|||
10 Jul 2008, 03:53 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.