Writing MIPS assembler instructions in C

Patrick Mahan mahan at mahan.org
Thu Feb 25 01:38:31 UTC 2010


All,

I keep banging my head against this one with little
luck.  I need to specify a specific MIPS register
in some inline assembly code.  Here is roughly the
code I need to write -

     ld t0, 0(%0)
      ....
     : /* no output */ : "r" (addr) : "t0" );

I can post more later if required, but I have
a very good reason for needing "t0".  This is 
part of some code built on the linux platform and
there they are using "%[rt]" which I cannot find
a description.

Thanks for the help,

Patrick

     


More information about the freebsd-mips mailing list