Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2010 17:38:26 -0800
From:      Patrick Mahan <mahan@mahan.org>
To:        freebsd-mips@freebsd.org
Subject:   Writing MIPS assembler instructions in C
Message-ID:  <17060.1267061906@mahan.org>

next in thread | raw e-mail | index | archive | help

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

     



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17060.1267061906>