Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1 [35 points] For this problem you are to use the code below that implements a loop. Let us assume that the code is

image text in transcribed

Problem 1 [35 points] For this problem you are to use the code below that implements a loop. Let us assume that the code is loaded onto the memory starting at location 0x04000 (Ox means that it is hexadecimal number.) Loop: add $t1,$s3, $s3 addi $t1,$t1,-64 lw $t3,0 ($t1) bne $t3, $85, Exit sub $83, $83, $34 j Loop Exit: or $t1,$s3, $s2 Please determine the format of each instruction, its location in memory, and its code. Use the table below Instruction code (Hex notation) Format opcode rs rt rd shift funct R opcode rs rt immediate Instruction Format opcode address Address (Hex) Ox04000 add $t1,$s3, $s3 addi $t1,$t1,-64 lw $t3,0($ti) bne $t3, $s5, Exit sub $s3, $s3, $34 j Loop or $t1,$s3, $s2

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_2

Step: 3

blur-text-image_3

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

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions