Question: 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

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!