linux-mips
[Top] [All Lists]

Re: Code error - why?

To: Justin Carlson <justin@cs.cmu.edu>
Subject: Re: Code error - why?
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Wed, 19 Jun 2002 18:18:03 +0200 (MET DST)
Cc: "Bradley D. LaRonde" <brad@ltc.com>, Balakrishnan Ananthanarayanan <balakris_ananth@email.com>, linux-mips@oss.sgi.com
In-reply-to: <1024416849.1182.10.camel@xyzzy.rlson.org>
Organization: Technical University of Gdansk
Sender: owner-linux-mips@oss.sgi.com
On 18 Jun 2002, Justin Carlson wrote:

> After preprocessing, the assembler needs to see $<number> as 
> register specifiers, so typically your choices are to do either:
> 
> #define a0 $4  // See include/asm-mips/regdef.h for these
> #define v0 $2
> 
> ...
> 
>       la a0, quest
>       li v0, 4

 Well, the usual choice is to put "#include <asm/regdef.h>" instead of
copying definitions.

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


<Prev in Thread] Current Thread [Next in Thread>