Consider the following 0x86 program: .data array DWORD 1,2,3,4,5,6,7,8,9 array Size=($-array)/4 ; array .code main PROC mov
Fantastic news! We've Found the answer you've been seeking!
Question:
Consider the following 0x86 program:
.data
array DWORD 1,2,3,4,5,6,7,8,9 array Size=($-array)/4
; array
.code
main PROC
mov ecx,arraySize-1 mov esi.OFFSET array
L1:
mov eax.[esi]
cdg
mov bx.2
idiy bx
add esi,4
smp, edx,0
je lbl
jmp next
mov eax.[esi] mov [eşi].cax
shr eax, 1
loop L1
exit
main ENDP
END main
What is the content of the array at the end of the program?
a) 1,1,3,2,5,3,7,4,9
b) 0,1,1,2,2,3,3,4,4
c) 1,2,1,4,2,3,7,8,4
d) 0,2,1,4,2,6,3,8,4
Expert Answer:
Answer rating: 100% (QA)
Answer First of all you can simplify your code Copy Code reverseLoop mov eax esi move the element in esi to eax mov ebx edi move the element in edi to ... View the full answer
Posted Date:
Students also viewed these computer engineering questions
-
What is the content of SOX Section 104(b)? 105(c)(4)?
-
What is the content of DTMs?
-
What is the content of the Worldwide Tax Guides maintained in IntelliConnect?
-
Make a balance sheet for the following data- One Time Start-Up Costs: Rent Deposit $4,000 Furniture & Fixtures $8,000 Equipment $6,000 Buildout/ Renovations $10,000 Decorating, Painting and...
-
Each month the Gallup organization conducts a poll for CNN and USA Today of the U.S. presidents current popularity rating (see www.pollingreport.com). For a poll conducted February 23, 2011, of...
-
A quality control inspector at the Beautiful Shampoo Company has taken three samples with four observations each of the volume of shampoo bottles filled. The data collected by the inspector and the...
-
In Figure P27.28, an external magnetic field is directed upward throughout a region that contains four currentcarrying wires having the lengths and currents shown. Rank the wires according to the...
-
A decision has been made to perform certain repairs on the outlet works of a small dam. For a particular 36-inch gate valve, there are three available alternatives: (a) Leave the valve as it is. (b)...
-
1. A planet is revolving around the sun in an elliptical orbit. The mass of planet is m, angular momentum of planet about sun is L, and length of semi major axis is a and eccentricity is e. Time...
-
You will play the roles of a Freight Forwarder and a materials and distribution manager for Apotex Pharmaceuticals in Toronto. Your role is the materials and distribution manager for Apotex...
-
Both Montreal Ltd. and Quebec Inc. produce a subcomponent that you incorporate into your primary product. Montreal has indicated that, for large volume orders in excess of 5,000 units, it is willing...
-
Calculate and explain how to make 800 mL of a 1/20 dilution from a 4M H3PO4 solution.
-
A manager decides to sign a contract with a new supplier in order to reduce the costs of direct materials. How would they determine their cost savings?
-
Silas is farsighted and wants to read the newspaper. Withoutglasses, Silass near point (the closest point he can see in focus)is far away, so he has to try to read the paper by holding his...
-
Provide two current rules of accounting for leases. How are the income statement and balance sheet affected by these rules? What method do you think best represents the liabilities and expenses of a...
-
Could you provide an in-depth analysis of the fundamental tenets of population genetics, encompassing concepts such as genetic drift, gene flow, and the Hardy-Weinberg equilibrium, and elucidate...
-
Research at least four sectors of the Mexican Stock Exchange: a. Download the daily prices registered by each of the issuers, with respect to the sector index in the last 24 months. Point out the...
-
C- Consider the following scenario:- A supermarket needs to develop the following software to encourage regular customers. For this, the customer needs to supply his/her residence address, telephone...
-
What minimum information must be extracted from a video clip of a moving object in order to quantify the object's motion?
-
The sequence in Figure P2.2 represents a ball rolling into a wall and bouncing off of it. The ball is \(10 \mathrm{~mm}\) in diameter. Make a graph showing the distance from the leading edge of the...
-
The sequence in Figure P2.3 represents a ball that is initially held above the ground. In the first frame the ball is released. In subsequent frames the ball falls, bounces on the ground, rises, and...
Study smarter with the SolutionInn App