Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Spim help?

1,307 views
Skip to first unread message

Aspan Dahmubed

unread,
Jul 4, 2004, 3:32:58 AM7/4/04
to
I am used to using xspim but I am away from my home system and all I have
access to is spim. How do I run a file in spim and how do I set values using
it? If someone could type out the exact commands that would be greatly
appreciated.
Aspan


Pooya Pakzad

unread,
Jul 4, 2004, 3:41:05 AM7/4/04
to
to run a file, run spim, then load your file (double quote the name of the
file) then type run. I don't know how to set values in spim, but you can
download spim and run it from your computer.
http://www.cs.wisc.edu/~larus/spim.html
if you use windows like me, the windows version is very easy to use, to set
a value open Simulator, form the menu, and set the value.
hope it helps,
Pooya

"Aspan Dahmubed" <asp...@berkeley.edu> wrote in message
news:cc8bre$23s7$1...@geode.berkeley.edu...

Aspan Dahmubed

unread,
Jul 4, 2004, 5:53:31 AM7/4/04
to
Hi Pooya
Since you use PCSpim maybe you can help me with this. The program keeps
giving me the error
spim: (parser) Label is define for the second time on line 6 of......
__start: addiu $a0, $0, 0
^
spim: (parser) parse error on line 11 of......
done
^
This file works just fine on the school network yet fails to load on PCSpim.
Any ideas?
Aspan


"Pooya Pakzad" <poo...@berkeley.edu> wrote in message
news:cc8cao$241e$1...@geode.berkeley.edu...

Pooya Pakzad

unread,
Jul 4, 2004, 5:19:42 PM7/4/04
to
actually, there is a small differences between the 2 versions. apparantly
PCSpim jumps to main: instead of __start. so try this, replace your __start
with main and add this line right before the .text
.globl main
instead of done add these two lines of instruction:
li $v0, 10
syscall

code 10 is the same as exit. try this and see if it works.
Pooya

"Hao Wen Vivian Chong" <cs61...@imail.EECS.Berkeley.EDU> wrote in message
news:cc9iop$27kk$1...@agate.berkeley.edu...
> Aspan,
>
> When it usually says that, it generally means you loaded the file once and
are
> trying to load it again without clearing everything in memory (that's why
it
> says you're defining the label for the second time). Did you try exiting
out of
> spim and then loading the file again?
>
> Vivian
>
> In article <cc8k2v$266m$1...@geode.berkeley.edu>, "Aspan Dahmubed"

0 new messages