Embed presentation
Download to read offline
![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](https://image.slidesharecdn.com/forthecodebelow-230322130303-70035527/75/For-the-code-below-Identify-and-underline-the-errors-and-write-the-pdf-1-2048.jpg)
The document contains a code snippet requiring error identification and correction related to assembly language. It emphasizes modifying the code to correct issues underlining them for clarity. The assignment is worth 10 marks.
![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](https://image.slidesharecdn.com/forthecodebelow-230322130303-70035527/75/For-the-code-below-Identify-and-underline-the-errors-and-write-the-pdf-1-2048.jpg)