Question: The source code and the corresponding assembled code of a program are provided below: [ Code attached to question ] Answer the following questions based

The source code and the corresponding assembled code of a program are provided below:
[Code attached to question]
Answer the following questions based only on the information provided in the above source and assembled code. Note that all line numbers refer to the numbering in the source code. Lines in the source code are also reproduced in the assembled code. Give all answers in 32-bit hexadecimal format. No space between the nibbles and no '0x' prefix.
(1) What is the value of pc when Line 21 is being executed?
(2) What is the address of the memory location from which Line 21 loads the value to r2?
(3) What is the value of r2 after the execution of Line 21?
(4) What is the value of pc when Line 22 is being executed?
(5) What is the address of the memory location from which Line 22 loads the value to r3?
(6) What is the value of r3 after the execution of Line 22?
 The source code and the corresponding assembled code of a program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!