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
Fantastic news! We've Found the answer you've been seeking!
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
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
Related Book For
Fundamentals of Heat and Mass Transfer
ISBN: 978-0471457282
6th Edition
Authors: Incropera, Dewitt, Bergman, Lavine
Posted Date: