Question: MIPS Assembly Computer Architecture: The answers are given to the following questions. Using the given MIPS assembly code please explain how to get the answers.

MIPS Assembly Computer Architecture:

The answers are given to the following questions. Using the given MIPS assembly code please explain how to get the answers.

MIPS Assembly Computer Architecture: The answers are given to the following questions.

Using the given MIPS assembly code please explain how to get the

This code was simulated on MARS. The data segment is shown below. Answer the following questions. Notice that the last two digits are missing from the addresses of all but the first instruction. Code Address Basic Ox3c011003 0x00400000 101 61,0x00001001 2: main: x20090008 0x0040000 add 69,60,0x000000083 ox 11200007| 0x004000#0beq 69,40, 0x00000007 | 4: x20040064 0x0040001o add 4,60,0x00000064 beq c1.62ero, O Oxte110000 0x0040004 1M 617,0x00000000 (616) 6 x00912022 0x00400018 sub 64,4,61 0x22100004: 0x004000? addi-416,416Ox0000 | e: add 650. 650. e 6l, zero, LOO bne ???? 100003-Ox00 4000133 0x0040000c GAIN vo.6zero,1 680, STRING vO.2ero, x34020002 0x0040002001 62,60,0x00000001 12 x004000o sysca x3c011001 0x0040004 2a1 620x00001001 24 1a Ox342 40000 .0x00400038,or 1,0x00000000 . x34020004 0x004000Oz 2,60,0x0000000415 0x00000 Ox2 402000aOx004000?8ddiu 62,60, ox0000000a +17: 0x ayscal 0x004000 ayacali 16: . x004000 6 syscal sys call .data STRING:.asciiz "is the answer!n DATA: .word 0x00000007 Oxffffffff 0x00000006 0x00000001 .word 0x0000000c Ox00000008 Oxfffffff4 0x00000006 .word 0x00000000 Oxfffffffa Oxfffffffo Ox00000005 1. What is the EXACT output of the MIPS program run on the MARS simulator? Put your response in the box 73 is the ancwer ANS: 2. How many bytes does the program (excluding data) occupy in memory? To what address does the program label LOOP: refer? -5 (onffff4EL ANS: Ox100100?? What is the signed decimal offiset found in the bne instruction of line 10:? ANS 5. To what address does the data label DATA: refer? This code was simulated on MARS. The data segment is shown below. Answer the following questions. Notice that the last two digits are missing from the addresses of all but the first instruction. Code Address Basic Ox3c011003 0x00400000 101 61,0x00001001 2: main: x20090008 0x0040000 add 69,60,0x000000083 ox 11200007| 0x004000#0beq 69,40, 0x00000007 | 4: x20040064 0x0040001o add 4,60,0x00000064 beq c1.62ero, O Oxte110000 0x0040004 1M 617,0x00000000 (616) 6 x00912022 0x00400018 sub 64,4,61 0x22100004: 0x004000? addi-416,416Ox0000 | e: add 650. 650. e 6l, zero, LOO bne ???? 100003-Ox00 4000133 0x0040000c GAIN vo.6zero,1 680, STRING vO.2ero, x34020002 0x0040002001 62,60,0x00000001 12 x004000o sysca x3c011001 0x0040004 2a1 620x00001001 24 1a Ox342 40000 .0x00400038,or 1,0x00000000 . x34020004 0x004000Oz 2,60,0x0000000415 0x00000 Ox2 402000aOx004000?8ddiu 62,60, ox0000000a +17: 0x ayscal 0x004000 ayacali 16: . x004000 6 syscal sys call .data STRING:.asciiz "is the answer!n DATA: .word 0x00000007 Oxffffffff 0x00000006 0x00000001 .word 0x0000000c Ox00000008 Oxfffffff4 0x00000006 .word 0x00000000 Oxfffffffa Oxfffffffo Ox00000005 1. What is the EXACT output of the MIPS program run on the MARS simulator? Put your response in the box 73 is the ancwer ANS: 2. How many bytes does the program (excluding data) occupy in memory? To what address does the program label LOOP: refer? -5 (onffff4EL ANS: Ox100100?? What is the signed decimal offiset found in the bne instruction of line 10:? ANS 5. To what address does the data label DATA: refer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!