Using label in macro

Ben Elliston bje@redhat.com
Thu Oct 17 13:56:00 GMT 2002


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



More information about the Binutils mailing list