Question
A 32-bit register contains the value 0xabcdef12. a) If this register value is written to address 0 via a store word instruction on a little-endian
A 32-bit register contains the value 0xabcdef12.
-
a) If this register value is written to address 0 via a store word instruction on a little-endian machine, what would the contents of memory locations 0, 1, 2, and 3 look like after the store is complete?
-
b) If we executed a load word instruction to address 0 on a big-endian machine, and the memory contents at addresses 0 thru 3 are what you indicated in part a, what 32-bit value would be loaded into the destination register at the completion of this load instruction?
-
c) Lets say that, instead of a load word instruction, a load byte instruction to address 1 is executed. What would be the 32-bit value loaded into the destination register? Provide an answer for both signed and unsigned versions of load byte.
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