Posted: November 9th, 2015

PROGRAMMING WITH MARS IDE DECISIONS AND LOOPS

PROGRAMMING WITH MARS IDE DECISIONS AND LOOPS
The purpose of this lab is to introduce you to the layout and structure of the Mars

IDE development tool, as well as decision and loop statements. In this lab, the

MIPS assembly language is used.

Answer the following question in addition to the LAB.

The MIPS assembly instructions that can be used are determined by what number

formats are present. For this assignment, you’ll need to know how to perform an

arithmetic operation given different representations of the same number.
What is 5ED4 – 07A4? Assume these numbers are represented as unsigned 16-bit

hexadecimal numbers. Show your work.
What is 5ED4 – 07A4? Assume these numbers are represented as signed (two’s

complement format) 16-bit hexadecimal numbers. PROGRAMMING WITH MARSIDE
DECISIONS AND LOOPS

The purpose of this lab is to introduce you to the layout and structure of

the MarsIDE development tool in addition to Decision and Loop statements. In this

lab, the MIPS Assembly language is used.

PROCEDURE:
I. Follow the same procedure in Lab1.
II. From the main menu, choose “File”? “New”
III. You will find a blank file. Start typing the following program.
The code:

IV. Click on the icon “Assemble the current file”
V. Run the programby “Run one step at a time” as shown below
Figure 1

• Observethe registers/Memory locations values after each Step Run. Record

these values in Table 1.

You should type or copy and paste the values from the Mars environment to the table

below using Microsoft office.

Questions:
1- Draw the memory and its contents starting from address 268500992.
2- What does the final value of $s3 represent?

Table 1
$s3 $s5 $s6 $t0 $t1 m[$s6] m[$s6+4] m[$s6+8]

m[$s6+12] m[$s6+16] m[$s6+20] m[$s6+24] m[$s6+28]
PLACE THIS ORDER OR A SIMILAR ORDER WITH US TODAY AND GET A GOOD DISCOUNT 🙂

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Live Chat+1-631-333-0101EmailWhatsApp