For these problems, the table holds various binary values forregister $t0. Given
ID: 3608610 • Letter: F
Question
For these problems, the table holds various binary values forregister $t0. Given the value of $t0, you will be asked to evaluatethe outcome of different branches. a. 1010 1101 0001 0000 0000 0000 0000 0010two b. 1111 1111 1111 1111 1111 1111 1111 1111two 1) Suppose that register $t0 contains a value from above and$t1 has the value 0011 1111 1111 1000 0000 0000 00000000two What is the value of $t2 after the followinginstructions? slt $t2, $t0, $t1 beq $t2, $zero, ELSE j DONE ELSE: addi $t2, $zero, 2 DONE: 1) Suppose that register $t0 contains a value from above and$t1 has the value 0011 1111 1111 1000 0000 0000 00000000two What is the value of $t2 after the followinginstructions? slt $t2, $t0, $t1 beq $t2, $zero, ELSE j DONE ELSE: addi $t2, $zero, 2 DONE: What is the value of $t2 after the followinginstructions? slt $t2, $t0, $t1 beq $t2, $zero, ELSE j DONE ELSE: addi $t2, $zero, 2 DONE: a. 1010 1101 0001 0000 0000 0000 0000 0010two b. 1111 1111 1111 1111 1111 1111 1111 1111twoExplanation / Answer
1) Suppose that register $t0 contains a value from above and$t1 has the value 0011 1111 1111 1000 0000 0000 00000000two bigpositive number What is the value of $t2 after the followinginstructions? a bslt $t2, $t0, $t1 $t2=1 $t2=1
beq $t2, $zero, ELSE in both cases $t2 not zero
j DONE so goes to Done and exits code
ELSE: addi $t2, $zero, 2 DONE: What is the value of $t2 after the followinginstructions? a b
slt $t2, $t0, $t1 $t2=1 $t2=1
beq $t2, $zero, ELSE in both cases $t2 not zero
j DONE so goes to Done and exits code
ELSE: addi $t2, $zero, 2 DONE: a. 1010 1101 0001 0000 0000 0000 00000010two negative (sign bit set)
b. 1111 1111 1111 1111 1111 1111 11111111two = -1