linux-mips
[Top] [All Lists]

Re: Code error - why?

To: "Balakrishnan Ananthanarayanan" <balakris_ananth@email.com>, <linux-mips@oss.sgi.com>
Subject: Re: Code error - why?
From: "Bradley D. LaRonde" <brad@ltc.com>
Date: Mon, 17 Jun 2002 12:01:56 -0400
References: <20020617094851.30730.qmail@email.com>
Sender: owner-linux-mips@oss.sgi.com
Drop the $ on the registers?

Regards,
Brad

----- Original Message -----
From: "Balakrishnan Ananthanarayanan" <balakris_ananth@email.com>
To: <linux-mips@oss.sgi.com>; <linux-kernel@vger.kernel.org>;
<redhat-list@redhat.com>
Sent: Monday, June 17, 2002 5:48 AM
Subject: Code error - why?


> I wrote a SAMPLE CODE - Hello.S to work for a cross-assembler
mips-linux-as - but this is giving me an error message:
>    ".data
>          quest: .asciiz "Hello World!"
>     .text
>     _start:
>          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?

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