Discussion:
Two Questions
(too old to reply)
Doug Showell
2005-05-10 16:02:28 UTC
Permalink
Are we supposed to output the values of the register after the halt
instruction is encountered, or just end the program immediately? Also, what
are supposed to with the FFFFFFC cases. It seems that in the lab handout
some are sign extended and others are not. Thanks for any help.
Vincent Paulson
2005-05-10 19:28:42 UTC
Permalink
It appears that we do have to output the registers after the Halt command,
but I can't figure out if we're suppose to end the program with some sort of
Halt command. The handout has as the last line of the output "Program exited
because it encoutered HALT command" or something along those lines, but
using "ta 0" makes it say exited normally. Any idea if there's a Halt
command for SPARC?

And he told me that the sign extended version is okay if that's what it
shows in the handout. But its actually quite simple to shorten it using an
and operator to shorten it and put it in %r8 rather than using or.

Oh, and how do I store the op code? I've been using %r1 and it works good
that way, but then my ISEM reg output doesn't match the output on the
handout.

-Vince
Post by Doug Showell
Are we supposed to output the values of the register after the halt
instruction is encountered, or just end the program immediately? Also,
what are supposed to with the FFFFFFC cases. It seems that in the lab
handout some are sign extended and others are not. Thanks for any help.
Beth Schlomer
2005-05-10 19:53:05 UTC
Permalink
The output that matters is the bold and underlined output (reg 2-6)..
the other output apparently doesnt matter...

Beth
Post by Vincent Paulson
It appears that we do have to output the registers after the Halt command,
but I can't figure out if we're suppose to end the program with some sort of
Halt command. The handout has as the last line of the output "Program exited
because it encoutered HALT command" or something along those lines, but
using "ta 0" makes it say exited normally. Any idea if there's a Halt
command for SPARC?
And he told me that the sign extended version is okay if that's what it
shows in the handout. But its actually quite simple to shorten it using an
and operator to shorten it and put it in %r8 rather than using or.
Oh, and how do I store the op code? I've been using %r1 and it works good
that way, but then my ISEM reg output doesn't match the output on the
handout.
-Vince
Post by Doug Showell
Are we supposed to output the values of the register after the halt
instruction is encountered, or just end the program immediately? Also,
what are supposed to with the FFFFFFC cases. It seems that in the lab
handout some are sign extended and others are not. Thanks for any help.
Loading...