Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

computer org & architecture class all 1 assignment please need help , if with steps + answer please ( pelase read auestion carefully ) skip

computer org & architecture class
all 1 assignment please need help , if with steps + answer please ( pelase read auestion carefully )

skip # 4
please need help witb step by step with answers ...
question #1 thorugh #6 is posted below
image text in transcribed
image text in transcribed
1, Assume the following register contents: $t0=0AAAAAAAA,$t1=087654321 a) For the register values shown above, what is the value of $12 for the following sequence of instructions? (2 points) sll St2,St0,6 or St2,St2,StI b) For the register values shown above, what is the value of $12 for the following sequence of instructions? ( 2 points) sll St2, St0, 8 andi $12,512,1 c) For the register values shown above, what is the value of $12 for the following sequence of instructions? ( 2 points) srl St2, Sto, 3 andi $t2,St2,0xFEFE 2, Consider the following MIPS loop: Loop: slt $t2,S0,St1 beq $+2,50, Done subi St1, St1, I addi $s2,$s2,5 j Loop Done: a) Assume that the register $t1 is initialized to the value 8 . What is the value in register $s2 assuming Ss 2 is initially zero? ( 2 points) b) For each of the loops above, write the equivalent C code routine. Assume that the register $s1,$s2,$11, and $t2 are integers a,b,i, and temp, respectively. ( 2 points) c) For the loops written in MIPS assembly above, assume that the register $ t I is initialized to the value 8. How many MIPS instructions are executed? ( 2 points) 3, Assume 155 and 214 are signed 8-bit decimal integers stored in two's complement format. Calculate 155214. The result should be written in decimal. Show your work. (4 points) 4, Using a table similar to that shown in Figure 3.5 (page 196), calculate the product of the octal unsigned 6-bit integer 718 and 358 using the hardware described in Figure 3.3 (Page 194). You should show the contents of each register on each step. ( 10 points) 5. Write down the binary representation of the decimal number 38.6125 assuming the IEEE 754 single precision format. ( 4 points) 6. IEEE 754-2008 contains a half precision that is only 16 bits wide. The leftmost bit is still the sign bit, the exponent is 5 bits wide and has a bias of 15 , and the mantissa is 10 bits long. A hidden 1 is assumed. Write down the bit pattern to represent 1.625102 assuming a version of this format. Calculate the sum of 2.625102 and 4.150390625101 by hand, assuming both numbers are stored in the 16-bit half precision described above. Assume 1 guard, 1 round bit, and 1 sticky bit, and round to the nearest even. Show all the steps. (10 points)

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

Students also viewed these Databases questions