For the code below. Identify and underline the errors and write the correct the code after
modification. [10 marks]
.data
arry DD 6,5,4,3,2,1
total DW ?
.code
MAIN PROC
mov esi, OFFSET arry
mov ecx, SIZE arry
call Aryytotal Use esi
mov total,eax
MAIN ENDP Arrytotal PROCEDURE
mov eax,0
MTR: add eax, esi
add esi,TYPE BYTE
loop MTR
ArraySum ENDP
END MAIN

For the code below. Identify and underline the errors and write the .pdf

  • 1.
    For the codebelow. Identify and underline the errors and write the correct the code after modification. [10 marks] .data arry DD 6,5,4,3,2,1 total DW ? .code MAIN PROC mov esi, OFFSET arry mov ecx, SIZE arry call Aryytotal Use esi mov total,eax MAIN ENDP Arrytotal PROCEDURE mov eax,0 MTR: add eax, esi add esi,TYPE BYTE loop MTR ArraySum ENDP END MAIN