MIPS32 Assembly Language Let $t0 = 0xFEDC_4321, $t1 = 0x9876_ABCD, and $t2 = AAA
ID: 2079836 • Letter: M
Question
MIPS32 Assembly Language
Let $t0 = 0xFEDC_4321, $t1 = 0x9876_ABCD, and $t2 = AAAA_AAAA. Suppose the following sequence of in-
structions (on the next page) is performed exactly four times, i.e., we execute instructions 1-4, we repeat executing
instructions 1-4, we repeat executing instructions 1-4, we repeat executing instructions 1-4, and then we stop. Show
the contents of $t0, $t1, $t2, and $t3, after we stop. Write your answers in hex.
[01] sll $t0, $t0, 1
[02] srl $t1, $t1, 1
[03] xor $t3, $t0, $t1
[04] nor $t3, $t2, $t3
[05] go back to line 1
Explanation / Answer
After executing the above 4 instructions for 4 times as in a loop,the contents in registers are as follows
t0 = 0xEDC4_3210
t1 = 0x0987_6ABC
t2 = 0xAAAA_AAAA
t3 = 0x1114_0551
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.