Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

ID: 3677392 • Letter: T

Question

The purpose of this lab is to introduce you to the layout and structure of the Mars IDE development tool. In this lab, the MIPS Assembly language is used. You will use this language to write your own programs during the semester.

li $s2, 100

li $s4,200

add $s6,$s2,$s4

Observe the registers values.  Record these values in Table 1.

Questions:

1.Determine  the instruction format for each instruction in the program

2.Determine the instruction content for each field per each instruction in the program

C:AUserst joshhemst Downloads add two numbers.asm - MARS 4.5 File Edit Run Settings Iools Help Run speed at max (no interaction) 0101 Edit Execute RegisterS Coproc 1Coproc 0 add two numbers.asm Name Number Value 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000064 0x00000000 0x000000c8 0x00000000 0x0000012c 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x10008000 0x7fffeffc 0x00000000 0x00000000 0x0040000c 0x00000000 0x00000000 zero Sat 1 li $s2, 100 l 4,200 3 add $s6,s2,s4 al $ a2 sabraham 2014-02-22 16:04 comment Kindly provide the solutions with explanations for the lab so we can keep the answer key on file Thanks. Sure. I will upload a separate file for the answerS 13 15 17 19 #34 21 23 25 27 sp 29 Sra 31 hi 10 Line: 9 Column: 1 Show Line Numbers Mars MessagesRun lO Clear

Explanation / Answer

The li instruction loads a specific numeric value into that register. $S2 will contain 100, $S4 contains 200.

format : li register_name value_to_store

The add instruction add values in two registers and stores in third. So $S6 contains 300.

format: add register_to_store first_register_to_add second_register_to_add

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote