mars-simulator


mips setting variable quesitons


Write a piece of MIPS code that, given values in $s0 and $s1, put into
the $t* registers the following:
$t0 = $s0
$t1 = $s1
$t2 = $t0 + $t1
$t3 = $t1 + $t2
...
$t7 = $t5 + $t6
In other words, for each register from $t2 to $t7, it stores the sum of
the previous two $t* register values. The $s0 and $s1 registers
contain the initial values.
Don't set the value of $s0 and $s1 in your code. Instead, learn how to
set it manually with MARS. Save your code into sum.s.
so i take it just wants me to just go like
add $t4, $t2, $t3
add $t5, $t3, $t4
etc
but what does it mean to set the value of $s0 and $s0 not in my code, but with MARS?
I realize MARS is an IDE, but how do you set variables with MARS?
One additional quesiton, how do you even set breakpoints in MARS? I can do it with the gui version, but they want us to use the terminal.

Related Links

Marss running diffrent parsec benchmark but same result
mips setting variable quesitons

Categories

HOME
cocoapods
google-chrome
libgdx
android-studio
livecode
activex
windows-10
slider
websocket
native-base
phpseclib
responsive-design
match
parsley.js
amazon-emr
tiff
cname
xbox360
vmware-workstation
gitkraken
mod-wsgi
password-generator
high-availability
locks
es6-modules
vcenter
reporting
xcrun
devtools
bootstrap-sass
subclassing
assert
stat
imgur
opal-framework
dagger
google-prediction
httphandler
web-inspector
asihttprequest
wysihtml5
nusoap
hibernate-ogm
visual-format-language
google-news
patternlab.io
google-shopping-api
email-injection
gawk
clp
conan
node.js-connect
apache-pig-grunt
openmrs
ioexception
gdl
directx-9
css-paged-media
fantom
mobilefirst-server
relational-model
kotlin-android-extensions
azure-xplat-cli
python-c-extension
ssmtp
incron
debug-symbols
microsoft-expression-web
window-resize
fileshare
jack
django-settings
acitree
sql-view
reentrancy
cmath
websphere-6.1
java.lang.class
django-apps
litespeed
qtextbrowser
play2-mini
fork-join
mediacontroller
android-2.1-eclair
cassini
reliability
self-tracking-entities
iphone-sdk-3.1.3
levels

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App