string concatenation in gas
Nick Clifton
nickc@cygnus.com
Fri Apr 14 15:13:00 GMT 2000
Hi Geoff,
One other way you can do, it although it is a bit of a hack - is to
use .set aliases and concatenated prefixes. Like this:
--------------------------------------------------------
.set ra1, r2
.set raa1, r3
.MACRO InternalpushRegs From,To,Base
push r\Base
.IF \To-\From
InternalpushRegs "(\From+1)",\To,a\Base
.ENDIF
.ENDM
.MACRO pushRegs From, To
InternalpushRegs \From, \To, \From
.ENDM
pushRegs 1, 3
--------------------------------------------------------
Cheers
Nick
More information about the Binutils
mailing list