Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is to be done in MARS Its from class - introduction to computer architecture Please give me the complete working code This is the

This is to be done in MARS
Its from class - introduction to computer architecture
Please give me the complete working code image text in transcribed
image text in transcribed
This is the example below and you can also edit this has given more instruction on assignment
image text in transcribed
image text in transcribed
Lab 1: MARS and Data Objectives In this lab, you will learn how to use MARS, a MIPS simulator and how to access data stored in different locations. The goals include Using MARS editor/assembler/simulator environment. Writing simple MIPS code (you need to understand MIPS assembly language format, assembler directives like .data, .asciiz, .text, .globl, MIPS registers, and some MIPS instructions) Learning new functions/features (e.g., system calls) from documents. Accessing data stored in registers and memory (and using constants in your code). Steps 1. The learning center. Make sure you have can log into the computers. If you cannot, see your TA immediately 2. MARS. Make sure that you can download and run MARS on the learning center machines. You can also download it to your own computer. It is written in Java. You should be able to run it without the admin privilege 3. In MARS, use File/Open to load the source file labl_example.s'. There is a nice built-irn editor for editing source code directly in MARS 4. In order to run the code, you need to assemble the instructions, i.e., convert the instructions to machine code. This can be done by using menu Run/Assemble. You can also use the keyboard shortcut F3. If there are errors in the code, MARS will report the errors and will not generate the binary code. You can go back to the editor to fix problems. 5. After successfully assembling the instructions, you can run the code by selecting Run Go. 6. The cxample code reads a string and prints it out. Try to type a short string and press the Enter key 7. Run the code again. You need to reset the simulator (Run/Reset or F12). 8. Experiment with other functions in MARS (set breakpoints, step/backstep, check register value, examine memory contents, etc.). Knowing all the features will help you a lot when you work on later projects

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

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago

Question

Write short notes on departmentation.

Answered: 1 week ago

Question

What are the factors affecting organisation structure?

Answered: 1 week ago

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago