This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: string concatenation in gas
- To: geoffb at bops dot com
- Subject: Re: string concatenation in gas
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Fri, 14 Apr 2000 15:13:25 -0700
- CC: binutils at sourceware dot cygnus dot com
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