Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Listed below are three new proposed MIPS pseudo-instructions: a) (5) update $t2, $t3 ; each 0 bit in $t3 sets the corresponding bit in

2. Listed below are three new proposed MIPS pseudo-instructions:

a) (5) update $t2, $t3 ; each 0 bit in $t3 sets the corresponding bit in $t2 to 1 ; for each 1 bit in $t3, the corresponding bit in $t2 is set to 0

Show how this pseudo-instruction can be implemented using no more than three MIPS true-op CPU instructions. Your solution should modify no memory locations and no registers other than $t2.

b) (5) get_exp $t2, $t3 ; treat the contents of $t3 as a floating point number ;and place the exponent into $t2

Show how a series of at most 3 MIPS CPU true-op assembly language instructions can be used to implement this pseudo-instruction. Any constants used in the true-op assembly language instructions should be in base-10 (decimal). Your solution should modify no memory locations and no registers other than $t2.

c) (5) negate $t2, $t3 ; treat the contents of $t3 as a floating point number and put ;its arithmetic negative into $t2

Show how this pseudo-instruction can be implemented using at most two MIPS CPU true-op assembly language instructions. Any constants used should be in base-10 (decimal). Your solution should modify no memory locations and no registers other than $t2.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions