Mail Archives: djgpp/1999/08/29/20:32:35
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) wrote:
> In article <199908272202 DOT SAA19843 AT delorie DOT com> you wrote:
> > In TASM you can use:
> > REPT 40
> [...]
> > ENDM
> That's an assembler macro. And no, gas itself doesn't support
> macros. For that, you'ld need 'gasp', the GNU ASsembler
> Preprocessor. For some simple cases, using assembly-via-C-Preprocessor
> (files named *.S, and gcc compiles them) can work.
Ooops, I have to correct myself, here. It's true that gas doesn't
support macro assembly in the usual sense, but 'rept' is an exception.
This one *is* supported by gas itself, already:
.rept 40
<instruction>
.endr
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -