This is the mail archive of the binutils@sourceware.cygnus.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]

Re: string concatenation in gas


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

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