Question
The following figure illustrates a portion of a program using assembly language and indicated by the line number from line 15 to 28. Figure Assume
The following figure illustrates a portion of a program using assembly language and indicated by the line number from line 15 to 28.
Figure |
Assume that the program has been built successfully and proceed with the debugging (F10 step over) process. Consider the initial content of the EAX = 0019FFCC.
Answer the following questions in sequence.
(a) Complete the following Table 1 by writing the content of the main memory starting with the address at 0x00406000. For unused address, write the answer as FF. [4 marks]
Table 1
0x00406000 | ||||
0x00406004 | ||||
0x0040600C |
(b) Complete the following Table 2 by writing the content of the EAX register at all instructions with the labels of (i) to (iv). Assume that the instructions were executed at each label in sequence. [4 marks]
Table 2
Label | Content of EAX |
(i) | |
(ii) | |
(iii) | |
(iv) |
(c) If an instruction is inserted at line 27 as shown in the following figure, what will be the new content of the EAX and EBX registers once executed successfully? Assume the initial content of EBX = 003F1000. [2 marks]
Figure |
Answers:
Register | Content |
EAX | |
EBX |
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