[gas] Label inside macro
Mike Frysinger
vapier@gentoo.org
Wed Jun 8 22:28:00 GMT 2011
On Wednesday, June 08, 2011 16:59:35 Robert Uhl wrote:
> The label with \intnr doesn't work (why?), i get
> "Error: invalid character '(' in mnemonic" again,
looking at some code ive written, this seems to work for me:
.macro pushr maxr:req
...
_push_r\maxr:
...
.endm
...
pushr 7
this creates a "_push_r7" label
i also have code that does:
.macro _pushrp maxr:req, maxp:req
...
_push_r\maxr\()_p\maxp:
...
.endm
...
_pushrp 4, 5
this creates a "_push_r4_p5" label
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20110608/0436117a/attachment.sig>
More information about the Binutils
mailing list