REP or LOOP directive
Posted: Fri Sep 12, 2008 1:17 pm
Some guys asked on the french forum for a way to have multiple includebinary. I suggested them to ask for a directive to do loops, like the REP directive in fasm : http://flatassembler.net/docs.php?article=manual#2.3.5
For example :
Result :
For example :
Code: Select all
REPT 4 counter
MY_LABEL%counter: IncludeBinary "file%counter.png"
ENDREPT
Code: Select all
MY_LABEL1: IncludeBinary "file1.png"
MY_LABEL2: IncludeBinary "file2.png"
MY_LABEL3: IncludeBinary "file3.png"
MY_LABEL4: IncludeBinary "file4.png"