Page 1 of 1

REP or LOOP directive

Posted: Fri Sep 12, 2008 1:17 pm
by djes
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 :

Code: Select all

  REPT 4 counter
    MY_LABEL%counter: IncludeBinary "file%counter.png"
  ENDREPT
Result :

Code: Select all

MY_LABEL1: IncludeBinary "file1.png"
MY_LABEL2: IncludeBinary "file2.png"
MY_LABEL3: IncludeBinary "file3.png"
MY_LABEL4: IncludeBinary "file4.png"

Re: REP or LOOP directive

Posted: Wed Sep 17, 2008 1:56 pm
by luis
djes wrote:I suggested them to ask for a directive to do loops, like the REP directive in fasm
+0.5

That would be cool :-)