This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Using label in macro
- From: Ben Elliston <bje at redhat dot com>
- To: binutils at sources dot redhat dot com
- Cc: martin at utstar dot com
- Date: 18 Oct 2002 06:56:21 +1000
- Subject: Re: Using label in macro
- References: <200210170158.g9H1wZY11948@tiger.utstar.com.cn>
Hi Martin,
>>>>> "Martin" == Martin Bian <martin@utstar.com> writes:
Martin> Hello all, I want to use macro in my assemble language
Martin> source code. But I need a label in one of line include the
Martin> macro.
Martin> Who can tell me how to make a macro to implement it?
How about this example?
.macro foo arg
\arg:
nop
.endm
.text
foo bar
Ben