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 $tO, 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 $tO, you will be asked to evaluate the outcome of different branches. 10 0100 1001 0010 0100 1001 0010 0100 101 11111011 1110 0100 0000 0000 0000 Suppose that register $t0 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 $t2, $t0, $t1 beq $t2, $O, ELSE j DONE ELSE: addi $t2, $0, 2 DONE: Suppose that register $tO 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 $t2, $to, X C. Suppose the program counter (PC) is set to Ox0000 0020 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 i. ii. 8) For these problems, the table holds various binary values for register $t0. Given the value of $tO, you will be asked to evaluate the outcome of different branches. 10 0100 1001 0010 0100 1001 0010 0100 101 11111011 1110 0100 0000 0000 0000 Suppose that register $t0 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 $t2, $t0, $t1 beq $t2, $O, ELSE j DONE ELSE: addi $t2, $0, 2 DONE: Suppose that register $tO 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 $t2, $to, X C. Suppose the program counter (PC) is set to Ox0000 0020 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

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

More Books

Students also viewed these Databases questions