linux-mips
[Top] [All Lists]

Re: Code error - why?

To: linux-mips@oss.sgi.com
Subject: Re: Code error - why?
From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
Date: Mon, 17 Jun 2002 18:55:14 +0200
In-reply-to: <20020617094851.30730.qmail@email.com>
References: <20020617094851.30730.qmail@email.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.3.28i
Balakrishnan Ananthanarayanan wrote:
[snip]
>          la $a0, quest
>          li $v0, 4
>          syscall   "
>        
> The error messages are:
>   " Hello.S line 5: illegal operands 'la' 
>     Hello.S line 6: illegal operands 'li'"
> 
> Can anyone help? What is wrong?

The register names are wrong. The software names, if defined in some
assembler header, are 'a0' and 'v0', while the assembler recognized
hardware names are '$4' and '$2'.


Thiemo

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