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...
-
Describe how management prepares fraudulent financial statements and misappropriates assets.
-
Determine the normal force, shear force, and moment at a section passing through point D. Take w =150N/m. 3 m 4 m
-
The following information is taken from the annual report of The Coca- Cola Company: Calculate the receivable turnover ratio and the receivable collection period for 2014 and 2015. How much...
-
The following information concerns the intangible assets of Epstein Corporation: a. On June 30, 2011, Epstein completed the purchase of the Johnstone Corporation for $2,000,000 in cash. The fair...
-
Please can someone provide a response to this post. Please do not reply me with my own post. Kindly read and reply. Thank you. A data fabric is a big data design framework (not a technology) that...
-
1. Jim Adams posts the column totals and individual transactions in "Other" columns to the appropriate general ledger account and updates each general ledger account balance. He places a posting...
-
You have $50,000 in cash and you would like to allocate it between the common stock of American International Group, Inc. (AIG) and Citigroup, Inc. (C) or (CITI). Before making your investment, you...
-
1. What kinds of industries or companies do you think would benefit most from using activity-based costing and why? 2. In designing or modifying an accounting system to capture appropriate costs for...
-
A bullet whose mass is 5.88g moves at a speed of 677m/s. a. What is the kinetic energy, in joules, of the bullet? b. What would be the kinetic energy, in joules, if the bullet were to instead move at...
-
Jose Ruiz manages a construction rm's equipment repair... Jose Ruiz manages a construction firm's equipment repair department. His department is a cost center. Costs for a recent period follow. Jose...
-
The most recent financial statements for GPS, Inc., are shown here: Income Statement Balance Sheet Sales $19,500 Assets $98,000 Debt $52,500 Costs 15,000 Equity 45,500 Taxable income $4,500 Total...
-
Two charged, square plates, separated by a distance of 12.6 cm and each with a side length of 27.1 cm, make up a parallel-plate capacitor. The electric field inside the plates is 1.70x10 3 N/C. If...
-
Thabos Transport needs R50 000 to support its short-term financing requirements during the next year. The company is evaluating its financial options at the bank where it maintains its current...
-
Name some of the various types of financial intermediaries described in the chapter and indicate the primary reason(s) each was created.
-
Which of the following statements are true, and which are false? (a) n = 3 only if n-2n-3=0. (b) n 2n 3 0 only if n = 3. (c) If n 2n 3 = 0 then n = 3. (d) For integers a and b, ab is a square only if...
-
(a) Find \(a_{1}\). (b) Find \(a_{2}, a_{3}, \ldots, a_{9}\). (c) Find \(a_{100}\). (d) Investigate the sequence \(a_{1}, a_{2}, \ldots, a_{n}, \ldots\) further.
-
Oleander Corporation had total assets of \($1,200,000\) on 31 December 20X3. On 31 December 20X4, total assets had increased to \($1,400,000.\) Oleanders statement of changes in equity disclosed the...
Study smarter with the SolutionInn App