Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Document Format ( 2 attachments)
635fb11a6d4fb_232802.pdf
180 KBs PDF File
635fb11a6d4fb_232802.docx
120 KBs Word File
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started