Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Consider the two MIPS assembly code fragments given below. Assume that the register St1 contains the memory address Ox1000 0000 and the register $t2
1. Consider the two MIPS assembly code fragments given below. Assume that the register St1 contains the memory address Ox1000 0000 and the register $t2 contains the memory address 0x1000 0010. Note that the MIPS architecture utilizes big-endian addressing. i) lbu Sto, o(St1) sw to, 0(St2) ii) lb to, 0(St1) sh to, 0(St2) a) Assume that the word-size data stored (in big endian format) at address 0x1000 0000 is Ox1234 5678. Determine the addresses and contents (data values) of all memory bytes (locations) written by the version of the "store" instruction in each case upon executing the two- instruction sequence. Assume that the memory word pointed by $t2 is initialized to 0xFFFF b) Assume that the word-size data stored (in big endian format) at address 0x1000 0000 is 0x8080 8080. Determine the addresses and contents (data values)of all memory bytes (locations) written by the version of the "store" instruction in each case upon executing the two- instruction sequence. Assume that the memory word pointed to by St2 is initialized to 0x0000 c) Assume that the word-size data stored (in big endian format) at address 0x1000 0000 is Ox1100 00FF. Determine the addresses and contents (data values) of all memory bytes (locations) written by the version of the "store" instruction in each case upon executing the two instruction sequence. Assume that the memory word pointed to by t2 is initialized to Ox5555 1. Consider the two MIPS assembly code fragments given below. Assume that the register St1 contains the memory address Ox1000 0000 and the register $t2 contains the memory address 0x1000 0010. Note that the MIPS architecture utilizes big-endian addressing. i) lbu Sto, o(St1) sw to, 0(St2) ii) lb to, 0(St1) sh to, 0(St2) a) Assume that the word-size data stored (in big endian format) at address 0x1000 0000 is Ox1234 5678. Determine the addresses and contents (data values) of all memory bytes (locations) written by the version of the "store" instruction in each case upon executing the two- instruction sequence. Assume that the memory word pointed by $t2 is initialized to 0xFFFF b) Assume that the word-size data stored (in big endian format) at address 0x1000 0000 is 0x8080 8080. Determine the addresses and contents (data values)of all memory bytes (locations) written by the version of the "store" instruction in each case upon executing the two- instruction sequence. Assume that the memory word pointed to by St2 is initialized to 0x0000 c) Assume that the word-size data stored (in big endian format) at address 0x1000 0000 is Ox1100 00FF. Determine the addresses and contents (data values) of all memory bytes (locations) written by the version of the "store" instruction in each case upon executing the two instruction sequence. Assume that the memory word pointed to by t2 is initialized to Ox5555
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started