Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For these problems, the table holds various binary values for register $t0. Give

ID: 3647594 • Letter: F

Question

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) 0010 0100 1001 0010 0100 1001 0010 0100two
b) 0101 1111 1011 1110 0100 0000 0000 0000two

1. Suppose that register $t0 contains a value from above and $t1 has the value:
0011 1111 1111 1000 0000 0000 0000 0000two

Note the result of executing these instructions on particular registers. What is the value of $t2 after the following instructions?

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

Explanation / Answer

Solution: 2.16.1 a. 1 b. 1