flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
Code: macro MY_MACRO x { repeat x push eax end repeat } |
|||
![]() |
|
alorent
Thanks revolution! You made my day again!
![]() |
|||
![]() |
|
revolution
You're welcome. Macros in fasm can be tricky things. But one thing to realise here is that repeat is executed at assembly time. There is another option using rept for preprocessor time execution.
|
|||
![]() |
|
rugxulo
revolution wrote: repeat is executed at assembly time, rept at preprocessor time So which stage is times? Code: times 3 movsb times 4 : shr ax,1 It's mentioned right before repeat in the manual, so I assume they are similar. |
|||
![]() |
|
revolution
times is assembly time evaluation.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.