www.delorie.com/archives/browse.cgi | search |
From: | broeker AT acp3bf DOT knirsch DOT de (Hans-Bernhard Broeker) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Assembly Question, sarl, sall...REPT# ENDM?? |
Date: | 30 Aug 1999 00:22:43 +0200 |
Organization: | RWTH Aachen, III. physikalisches Institut B |
Lines: | 24 |
Message-ID: | <7qcbrj$1v5@acp3bf.knirsch.de> |
References: | <199908291913 DOT VAA01870 AT acp3bf DOT physik DOT rwth-aachen DOT de> |
NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
X-Trace: | nets3.rz.RWTH-Aachen.DE 935965368 8276 137.226.32.75 (29 Aug 1999 22:22:48 GMT) |
X-Complaints-To: | abuse AT rwth-aachen DOT de |
NNTP-Posting-Date: | 29 Aug 1999 22:22:48 GMT |
X-Newsreader: | TIN [version 1.2 PL2] |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |