flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Parentheses? |
Author |
|
Tyler 07 May 2010, 22:05
baldr used parentheses in a way I've never seen done in Fasm here. What do they do? I've read the macro section of Fasm's manual multiple times and don't remember ever seeing ()s used for anything other than arithmetic.
|
|||
07 May 2010, 22:05 |
|
mindcooler 07 May 2010, 23:12
My guess is they are just matched.
_________________ This is a block of text that can be added to posts you make. |
|||
07 May 2010, 23:12 |
|
Tyler 08 May 2010, 12:28
Oh, I don't get match anyway, that's probably why I didn't notice it.
How does it work, is it like if or something? |
|||
08 May 2010, 12:28 |
|
baldr 08 May 2010, 13:22
Tyler,
It performs attempt to match left and right sides of comma-separated pair. If they've matched, body is expanded, replacing tokens from left side with their matching counterparts from right side. Code: match 0, 1 { db 0 }
Code: match =0, 1 { db 0 } Back to the topic: Code: match .name(.count), MessageBoxTimeoutW(6) { db .count, `.name } |
|||
08 May 2010, 13:22 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.