From: Justin Wojdacki <justin.wojdacki@analog.com>
To: Balakrishnan Ananthanarayanan <balakris_ananth@email.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: Code error - why?
Date: Mon, 17 Jun 2002 09:29:15 -0700 [thread overview]
Message-ID: <3D0E0E5B.C41AC2DF@analog.com> (raw)
In-Reply-To: 20020617094851.30730.qmail@email.com
Balakrishnan Ananthanarayanan wrote:
>
> 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?
>
$a0 and $v0 are what's probably giving you grief. Are you relying on
the assembler to know these symbols or are you including a file that
defines them.
Just to be sure, try replacing $a0 with $4 and $v0 with $2 and see if
the code builds.
--
-------------------------------------------------
Justin Wojdacki
justin.wojdacki@analog.com (408) 350-5032
Communications Processors Group -- Analog Devices
next prev parent reply other threads:[~2002-06-17 16:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-17 9:48 Code error - why? Balakrishnan Ananthanarayanan
2002-06-17 16:01 ` Bradley D. LaRonde
2002-06-17 16:01 ` Bradley D. LaRonde
2002-06-18 16:14 ` Justin Carlson
2002-06-19 16:18 ` Maciej W. Rozycki
2002-06-17 16:29 ` Justin Wojdacki [this message]
2002-06-17 16:55 ` Thiemo Seufer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D0E0E5B.C41AC2DF@analog.com \
--to=justin.wojdacki@analog.com \
--cc=balakris_ananth@email.com \
--cc=linux-mips@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox