flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
CandyMan
"break" is possible only in "repeat", "while"
_________________ smaller is better |
|||
![]() |
|
fabbel
i see.. really too bad.. is there any alternative way to replicates sthg roughly simililar a while / end while loop at preprocessing stage ?
e.G. use case : 1/build a list of values using a symbolic constant, redefining it several time (multiple EQU's / DEFINEs) 2/ lookup a particular value in that list =>easy to iterate thru the values using irpv till i find the searched item, but then how can i exit the loop once the value is found ? i am forced to iterate anyway till the end of the list.... |
|||
![]() |
|
revolution
fabbel wrote: i am forced to iterate anyway till the end of the list.... The preprocessor only runs once, unlike the assembler, so if list is very large you might notice some slowdown. |
|||
![]() |
|
fabbel
indeed, i had devised this workaround (i.e. set some variable to say "found", and ignore future iterations based upon that variable)... but that just looks a bit silly to me. Would such feature be so tricky to add to fasm preprocessor ? i am having a hard time understanding why it would make less sense to have it in preprocessing stage loop constructs, while it was seen very sensible and implemented for assembly time loop constructs .. and after all, that looks very much like a very basic feature of any kind of automated processing...
|
|||
![]() |
|
l4m2
Does a macro that remain input help if "break" change it into an empty one
|
|||
![]() |
|
revolution
l4m2 wrote: Does a macro that remain input help if "break" change it into an empty one |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.