Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. (24 24 points) Answer the following questions regarding MIPS refer to the attachment: MIPS assembly language). Use only nistruction sets provided. You may need

image text in transcribed
3. (24 24 points) Answer the following questions regarding MIPS refer to the attachment: MIPS assembly language). Use only nistruction sets provided. You may need to use Sat for some cnse Assembly language 1) (6 points) Convert the following pseudoinstruction stuctions to accomplish the same job. You can use Sat for your purpose. lwbig $12, st, big S12 - Memory [St1 +big]: big' refers to a specific into legal MIPs number that requires 32 bits to represent. 2) (4 points) I would like to put nine times the value of Ssl into $s2. Use two instructions of MIPS for doing this without using a multiply instruction Ignore any overflow that may occur. 3) (3 points) Convert the following MIPS instruction to a machine code (32-bit). For reference, the opcode forw' is 100011, MIPS instruction: lw $4, 12(S6) Machine code: 4) (4 points) The following MIPS code is stored in memory starting at address 1000 (decimal). What are the two possible values (in decimal) for the contents of the PC (Program Counter) after the branch instruction has executed? 1000 loop: addi Sa0, Sao, 4 andi St1, St0, 2 sub StO, St1, St2 beq Sto, Szero, loop sra St2, St0, 1 and

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions