flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 07 Aug 2016, 05:07
Do you mean a recursive macro?
If so, you can see the "allow_nesting" macro in win32ax.inc for that. It basically redefines itself within itself to get the recursion. |
|||
![]() |
|
l4m2 07 Aug 2016, 09:45
revolution wrote: Do you mean a recursive macro? recursing need redefing in the macro, I know. I just don't know how to have the shelling code after the macro |
|||
![]() |
|
revolution 07 Aug 2016, 09:57
Please you explain more about what you are trying to do.
|
|||
![]() |
|
l4m2 07 Aug 2016, 13:52
Or let's say about
revolution wrote: recursive macro revolution wrote: the "allow_nesting" macro in win32ax.inc Code: recursive macro xxx {xxx } |
|||
![]() |
|
l4m2 22 Aug 2016, 14:22
Code: macro fun a, b if (a)=0 repeat 1 t:b display `t, 13, 10 end repeat else fun (a)-1, (b)*(a) end if end macro fun 10, 1 macro mov op1, op2 display 'mov ', `op1, ',', `op2, 13, 10 end macro macro mov op1, op2 if `op1 eq 'ip' jmp op2 else mov op1, op2 end if end macro mov ax, cx fasmg return wrote: 3628800 How does fasmg decide to use the present macro or the previous one? |
|||
![]() |
|
l4m2 22 Aug 2016, 14:28
It seems to use the previous one when not first defined
![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.