THESE QUESTIONS ARE NOTMAKING SENSE TO ME! HELP PLEASE! 2. What is the content o
ID: 3608669 • Letter: T
Question
THESE QUESTIONS ARE NOTMAKING SENSE TO ME! HELP PLEASE!2. What is the content of register $t2 after the instructionla $t2, var has been exe- cuted? Note that this synthetic instruction contains a luifollowed by an immediate instruction. Assume var is stored at address 0x00001000 and itcontains a value of 10? Also write the native MIPS instructions to which thisinstruction is translated.
3. Write a sequence of instructions for loading a value of0xabcd0080 into register $1. - THESE QUESTIONS ARE NOTMAKING SENSE TO ME! HELP PLEASE!
2. What is the content of register $t2 after the instructionla $t2, var has been exe- cuted? Note that this synthetic instruction contains a luifollowed by an immediate instruction. Assume var is stored at address 0x00001000 and itcontains a value of 10? Also write the native MIPS instructions to which thisinstruction is translated.
3. Write a sequence of instructions for loading a value of0xabcd0080 into register $1. -
Explanation / Answer
2. What is the content of register $t2 after the instructionla $t2, var has been exe- cuted? Note that this synthetic instruction contains a luifollowed by an immediate instruction. Assume var is stored at address 0x00001000 and itcontains a value of 10? Also write the native MIPS instructions to which thisinstruction is translated. this I'm sure$t2 will have the address of var which is 0x00001000 in it
If var is the 1st variable in the data section Ibelieve it will be
lui $1, 4097 [var]
ori $10,$1,0 [var]
3. Write a sequence of instructions for loading a value of0xabcd0080 into register $1.
I think
lui $1, 0xabcd
ori $1,$1 0x0080
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.