Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Document Format ( 2 attachments)

PDF file Icon
635fb11a6d4fb_232802.pdf

180 KBs PDF File

Word file Icon
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

Recommended Textbook for

Fundamentals of Heat and Mass Transfer

Authors: Incropera, Dewitt, Bergman, Lavine

6th Edition

978-0470055540, 471457280, 470881453, 470055545, 978-0470881453, 978-0471457282

More Books

Students also viewed these Computer Engineering questions

Question

Using a graphing utility, graph y = cot -1 x.

Answered: 1 week ago