Re: Code error - why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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        +


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux