part of the memory of a 32-bit computer is as follows 34Ab04: AF 34AB05: 46 34AB
ID: 3608862 • Letter: P
Question
part of the memory of a 32-bit computer is as follows34Ab04: AF
34AB05: 46
34AB06: 5A
34ABO7: FE
34AB08: 53
34AB09: D3
34AB09: 93
34AB0B: 7C
Both memory addresses and memory contents are written inhexidecimal
The computer is running the following program:
LW R1, 34AB04
LW R2, 34AB08
SUB R3, R1,R2
SW R3, 34AB04
Where the load(store) instruction LW(SW) loads(stores) a word (of32 bits) using the absolute addressing mode
(a) If the computer is a little-ending machine,show the contents ofregisters R1,R2,R3 and the memory after the program iscompleted.the contents of each register should be written inhexidecimal numbers from the left (the most significant half-byte)to the right (the list significal half-byte).Justify your answer byshowing the trace of the program for each instruction and thereason for each operation.
(b) repeat the same questions above,assuming that the computer is abig-ending manchine.
Explanation / Answer
In Big-Endian machines store themost significant byte ofdata in the lowestmemory address.so the contents store like givenbelow:
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.