Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Using SID or Student ID: 104085031, solve the following. For this tutorial, please download the MARS (MIPS Assembler and Runtime Simulator) at nvo It

1. Using SID or Student ID: 104085031, solve the following.

image text in transcribed

image text in transcribed

For this tutorial, please download the MARS (MIPS Assembler and Runtime Simulator) at nvo It is a Java application so it should run on any platform. There are a number of ways to launch the program; the simplest should be to double click" on the jar" file; see the website for more information. Once MARS has successfully started, you will see 3 window areas. The center one is the editing/assembling view, the right, the current register view, and on the bottom, the results view. To create a file, go to "File", "New" and start entering assembly code. Each of the questions below will detail what is necessary to move on in the assignment. Please create "SID_Assign2.doc" (where "SID is your student number), a document file which includes all your responses for questions which don't require a "SID_Assign2_X.s". Once the assignment is complete, ZIP all the files into "SID_Assign2.zip" and email them to the GA. Remember, comments help us evaluate your work. 1. Copy the following code into the editor in MARS. Save it as "SID_Assign2_1.s" # comment liberally! A: word 10 word 8 word o asciiz "The solutions is intext lw $t1,B add St2, $to, $tl 11 SvO,4 La Sao.massage 11 SvO,1 iw Sao,c 11 SvO, 10 Notice that there are two directives" in the code. .data" and ".text". The .data" directive indicates that anything following it is pertaining to the data section in the software module where as anything following .text" is pertaining to the code segment. This is done so that the object" file will be partitioned correctly for proper run-time linking. Now, press F3 or Run", Assembler" and assuming you've entered the code correctly, the tab at the top of the editor will switch to Execute" and you will see a listing of the assemblers results which shows all the opcodes generated. Now, press F5 or Run", "Go" and the code will simulate. Since this code uses some specialized syscalls" (calls to the kernel, or in this case the simulator) we can produce some useful outputs with minimal work; this is shown at the bottom view (Run I/O)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+8. Are there any disadvantages to this tactic?

Answered: 1 week ago