public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Jan Zizka <ziza@klubicko.net>
To: binutils@sources.redhat.com
Subject: Incomplete .macro documentation?
Date: Tue, 15 Jul 2003 12:51:00 -0000	[thread overview]
Message-ID: <20030715125103.GG10871@velky.homelinux.net> (raw)

Hi,

if I define macro as follows:

.macro TEST n
.equ REG\n_TEST,0
.equ REG\n_TEST,1
.endm

then 'TEST 1' will not produce what I've desired, because expansion can't that
simply handle arguments which are in the middle of statement. So after some
struggle I have found in the macro.c that it has to be done as follows:

.macro TEST n
.equ REG\n\(_)TEST,0
.equ REG\n\(_)TEST,1
.endm

This I take is a feature of macros, but I didn't find anything about this in
binutils manual (e.i. http://sources.redhat.com/binutils/docs-2.12/as.info/Macro.html)
Or is it described anywhere? If not I think that it should be added :)) OK I
can add it if anybody will point me to correct place ;)

Jan




             reply	other threads:[~2003-07-15 12:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-15 12:51 Jan Zizka [this message]
2003-07-16  6:26 ` Ben Elliston
     [not found] ` <m3brvtjje0.fsf@redhat.com>
2003-07-17 17:30   ` Jan Zizka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030715125103.GG10871@velky.homelinux.net \
    --to=ziza@klubicko.net \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).