Question: section .data array DWORD 1,2,3,4,5,6,7,8,9 ; array arraySize = ($-array)/4 section .code main PROC mov ecx,arraySize-1 mov esi,OFFSET array L1: mov eax,[esi] cdq mov bx,2

section .data
array DWORD 1,2,3,4,5,6,7,8,9 ; array
arraySize = ($-array)/4
section .code
main PROC
mov ecx,arraySize-1
mov esi,OFFSET array
L1:
mov eax,[esi]
cdq
mov bx,2
idiv bx
add esi,4
cmp edx,0
je lbl
jmp next
lbl:
mov eax,[esi]
shr eax,1
mov [esi],eax
next:
loop L1
exit
main ENDP
END main

Step by Step Solution

3.36 Rating (152 Votes )

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

Document Format (2 attachments)

PDF file Icon

635fb11a6d4fb_232802.pdf

180 KBs PDF File

Word file Icon

635fb11a6d4fb_232802.docx

120 KBs Word File

Students Have Also Explored These Related Computer Engineering Questions!