flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Interesting idea for macro repetition Goto page Previous 1, 2, 3 |
Author |
|
JohnFound 11 May 2005, 12:12
Privalov wrote: With the backlashes solution you just write "\forward", "\\forward" etc. for different levels. Well, this approach is really good enough for everything. And even more, it improves the readability. Combined with preprocessor repetition and conditional preprocessing, it will simplify complex macroses a lot. Regards |
|||
11 May 2005, 12:12 |
|
asmdemon 11 May 2005, 13:28
Privalov wrote: I'm attaching the modified preprocessor module that has it. Will you include these in the next release? AND/OR the fasm documentation? _________________ It is better to be on the right side of the devil than in his path. |
|||
11 May 2005, 13:28 |
|
pelaillo 11 May 2005, 13:35
Yes, better solution. Backlashes provide an immediate visual indication of the level concerned.
|
|||
11 May 2005, 13:35 |
|
vid 12 May 2005, 17:30
great work, i love it
|
|||
12 May 2005, 17:30 |
|
MCD 24 May 2005, 11:29
Great, but there is only 1 question remaining to me:
Will this just remove all of the Code: _% %_ _local _common _forward _reverse Code: macro SomeMacro { macro Inner _% SomeStuff %_ SomeStuff } _% fix { %_ fix } would become Code: macro SomeMacro { macro Inner { SomeStuff /} SomeStuff } _________________ MCD - the inevitable return of the Mad Computer Doggy -||__/ .|+-~ .|| || |
|||
24 May 2005, 11:29 |
|
Tomasz Grysztar 24 May 2005, 12:56
Yes, those fixes are already removed from the standard Win32 includes, replaced with the new solution.
|
|||
24 May 2005, 12:56 |
|
revolution 25 May 2005, 06:58
I tried the example from the documentation but get "Error: unexpected characters." when assembling.
Code: rept 5 { in al,dx } It can be made to assemble with the addition of a variable name Code: rept 5 v { in al,dx } |
|||
25 May 2005, 06:58 |
|
Tomasz Grysztar 25 May 2005, 08:28
My stupid mistake, fixed now.
|
|||
25 May 2005, 08:28 |
|
revolution 26 May 2005, 03:07
The code below causes FASM 1.61.7 to crash.
Code: rept 1 {macro foo [arg] \{ \common nop \} } foo test The same thing, but with one extra line feed is okay. Code: rept 1 {macro foo [arg] \{ \common nop \} } foo test |
|||
26 May 2005, 03:07 |
|
Tomasz Grysztar 26 May 2005, 07:06
Another fix... I must have been sleepy when writing this...
|
|||
26 May 2005, 07:06 |
|
Goto page Previous 1, 2, 3 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.