Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

8) For these problems, the table holds various binary values for register $t0. Given the value of $t0, you will be asked to evaluate the

image text in transcribed

8) For these problems, the table holds various binary values for register $t0. Given the value of $t0, you will be asked to evaluate the outcome of different branches 10 0100 1001 0010 0100 1001 0010 0100 101 1111 1011 1110 0100 0000 0000 0000 Suppose that register $tO contains a value from above and $t1 has the value 0011 1111 1111 1000 0000 0000 0000 0000. Note the result of executing these instructions on particular registers. What is the value of $t2 after the following instructions? Explain a. slt St2, $t0, t1 beq St2, $O, ELSE DONE ELSE: addi $t2, $0, 2 DONE Suppose that register StO contains a value from the table above and is compared against the value X, as used in the MIPS instruction below. Note the format of the slti instruction. For what values of X, if any, will $t2 be equal to 1? Explain b. slti St2, $t0, X C. Suppose the program counter (PC) is set to Ox0000 0020 i. Is it possible to use the jump MIPS assembly instruction to set the PC to the address as shown in the data table above? Explain your reasoning Is it possible to use the branch-on-equal MIPS assembly instruction to set the PC to the address as shown in the data table above? Explain your reasoning ii. 8) For these problems, the table holds various binary values for register $t0. Given the value of $t0, you will be asked to evaluate the outcome of different branches 10 0100 1001 0010 0100 1001 0010 0100 101 1111 1011 1110 0100 0000 0000 0000 Suppose that register $tO contains a value from above and $t1 has the value 0011 1111 1111 1000 0000 0000 0000 0000. Note the result of executing these instructions on particular registers. What is the value of $t2 after the following instructions? Explain a. slt St2, $t0, t1 beq St2, $O, ELSE DONE ELSE: addi $t2, $0, 2 DONE Suppose that register StO contains a value from the table above and is compared against the value X, as used in the MIPS instruction below. Note the format of the slti instruction. For what values of X, if any, will $t2 be equal to 1? Explain b. slti St2, $t0, X C. Suppose the program counter (PC) is set to Ox0000 0020 i. Is it possible to use the jump MIPS assembly instruction to set the PC to the address as shown in the data table above? Explain your reasoning Is it possible to use the branch-on-equal MIPS assembly instruction to set the PC to the address as shown in the data table above? Explain your reasoning

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

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions

Question

5. Structure your speech to make it easy to listen to

Answered: 1 week ago

Question

1. Describe the goals of informative speaking

Answered: 1 week ago