<div dir="ltr">Hmm, I guess gnu as doesn't have a notion of variable assignment at assemble time.<div><br></div><div>Anyway, something like this should work:</div><div><br></div><div><div>.macro  range_inclusive from, to</div><div>.section foo,"ax",@progbits,unique,\from</div><div>.if \to-\from</div><div>range_inclusive "(\from+1)",\to</div><div>.endif</div><div>.endm</div><div><br></div><div>range_inclusive 1,20</div></div><div><br></div><div>-- Sean Silva</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 8, 2015 at 6:59 AM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 4 September 2015 at 23:09, Sean Silva <<a href="mailto:chisophugis@gmail.com">chisophugis@gmail.com</a>> wrote:<br>
> Can you use .rept for this?<br>
<br>
</span>I don't think so. .rept always creates identical lines, so we can<br>
switch to the same section 0xff00 times, but would still just create<br>
1, no?<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>