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

Exercise 2.16 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.

a. 1010 1101 0001 0000 0000 0000 0000 0010two

b. 1111 1111 1111 1111 1111 1111 1111 1111two 2.16.1 [5] <2.7> Suppose that register $t0 contains a value from above and $t1 has the value 0011 1111 1111 1000 0000 0000 0000 0000two What is the value of $t2 after the following instructions?

slt $t2, $t0, $t1 beq $t2, $zero, ELSE j DONE ELSE: addi $t2, $zero, 2 DONE:

2.16.2 [5] <2.7> Suppose that register $t0 contains a value from the table above and is compared against the value X, as used in the MIPS instruction below. For what values of X, if any, will $t2 be equal to 1?

slti $t2, $t0, X 2.16.3 [5] <2.7> Suppose the program counter (PC) is set to 0x0000 0020. Is it possible to use the jump (j) MIPS assembly instruction to set the PC to the address as shown in the data table above? Is it possible to use the branch-on-equal (beq) MIPS assembly instruction to set the PC to the address as shown in the data table above?
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.

a. 0x00001000

b. 0x20001400 2.16.4 [5] <2.7> Suppose that register $t0 contains a value from above. What is the value of $t2 after the following instructions?
slt $t2, $t0, $t0 bne $t2, $zero, ELSE j DONE ELSE: addi $t2, $t2, 2 DONE:
2.16.5 [5] <2.6, 2.7> Suppose that register $t0 contains a value from above.
What is the value of $t2 after the following instructions?
sll $t0, $t0, 2 slt $t2, $t0, $zero 2.16.6 [5] <2.7> Suppose the program counter (PC) is set to 0x2000 0000. Is it possible to use the jump (j) MIPS assembly instruction to set the PC to the address as shown in the data table above? Is it possible to use the branch-on-equal (beq)
MIPS assembly instruction to set the PC to the address as shown in the data table above?

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 Computer Organization And Design Questions!