This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using label in macro


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]