Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 Answering the following two questions about MIPS. You need to explain your answer in detail. [10 pts] 2.1 Consider the following two code blocks

image text in transcribed

2 Answering the following two questions about MIPS. You need to explain your answer in detail. [10 pts] 2.1 Consider the following two code blocks A and B. What are the values in $8 after the execution of A and B, respectively? Why? [4 pts] Code Block A: addiu $6,$0,34 addiu $7,$0,34 slt $8,$6,$7 Code Block B: addiu $6,$0,34 addiu $7,$0,34 sltu $8,$6,$7 2.2 For each of the following two Pseduo-instruction with comment, translate it into actual MIPS instructions as specified in the requirement. [6 pts] (1) instruction 1: addiu $t1, $t2, 0x1234abcd \# add a 32 -bit constant with $t2, # and store the result in $t1 Requirement: use a sequence of three instructions: lui, ori, addu, and another register. (2) instruction 2 : bgt $t1, $t2, Label \#branch greater than: if $t1>$t2, branch to Label Requirement: use a sequence of two instructions: slt, bne, and another register $t3

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

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

Students also viewed these Databases questions