Question: PLEASE ANSWER THIS IMMEDIATELY THIS IS AN EMERGENCY!! The aim of program in Figure 2 is to sum the numbers in array marks. However, the

PLEASE ANSWER THIS IMMEDIATELY THIS IS AN EMERGENCY!!

PLEASE ANSWER THIS IMMEDIATELY THIS IS AN EMERGENCY!! The aim of program

The aim of program in Figure 2 is to sum the numbers in array marks. However, the program contains errors. include Irvine32.inc .data marks WORD 10,20,30,40,50,60,70,80,90,100 1 2 3 4 5 6 7 8 9 10 11 12 .code main proc mov AX, mov CX, 10 mov ESI, OFFSET marks again: 13 add AX, (ESI) sub ESI,4 inc CX loop again 14 15 16 17 18 19 main end exit endp main Figure 2 a. Debug and execute the program. Can the loop in the program be executed properly? [1 mark] State the line numbers that are creating the problem. [2 marks] b. Correct the related instructions so the loop can be executed properly. i. attached the correct program code [2 marks] and ii. output from the visual studie [2 marks] The aim of program in Figure 2 is to sum the numbers in array marks. However, the program contains errors. include Irvine32.inc .data marks WORD 10,20,30,40,50,60,70,80,90,100 1 2 3 4 5 6 7 8 9 10 11 12 .code main proc mov AX, mov CX, 10 mov ESI, OFFSET marks again: 13 add AX, (ESI) sub ESI,4 inc CX loop again 14 15 16 17 18 19 main end exit endp main Figure 2 a. Debug and execute the program. Can the loop in the program be executed properly? [1 mark] State the line numbers that are creating the problem. [2 marks] b. Correct the related instructions so the loop can be executed properly. i. attached the correct program code [2 marks] and ii. output from the visual studie [2 marks]

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!