Consider the following 0x86 program: .data array DWORD 1,2,3,4,5,6,7,8,9 aravSize -(S-array)/4 ; array .code main PROC...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider the following 0x86 program: .data array DWORD 1,2,3,4,5,6,7,8,9 aravSize -(S-array)/4 ; array .code main PROC mov ecx,arraySize-1 mov esi.OFFSET array L1: mov eax. [esi] sda mov bx,2 idiv bx add esi,4 smp edx,0 je lbl jmp, next Ibl: mov eax.[esi] shr eax,1 mov [esi],eax next: 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 Consider the following 0x86 program: .data array DWORD 1,2,3,4,5,6,7,8,9 aravSize -(S-array)/4 ; array .code main PROC mov ecx,arraySize-1 mov esi.OFFSET array L1: mov eax. [esi] sda mov bx,2 idiv bx add esi,4 smp edx,0 je lbl jmp, next Ibl: mov eax.[esi] shr eax,1 mov [esi],eax next: 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
Related Book For
An Introduction to the Mathematics of Financial Derivatives
ISBN: 978-0123846822
3rd edition
Authors: Ali Hirsa, Salih N. Neftci
Posted Date:
Students also viewed these programming questions
-
Allergan is a major pharmaceutical firm. You work for Allergan's CFO and are evaluating a major and expensive drug trial. The drug trial would require an investment of $95 million today If the trial...
-
Consider the MPS record below Wk 1 2 3 4 5 6 Forecast 15 25 9 15 22 5 Orders 7 10 10 10 Available ATP MPS On hand = 5, Lot size = 30 a. Complete the MPS record b. Update the record from part a -...
-
Determine CPI, ETC (1), and EAC. Activity Total PV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 6 6 2 20 10 10 3 30 9 6 6 6 3 4 20 8 2 5 5 5 16 4 4 4 4 6 18 9 9 7 8 4 4 Status Report: Ending Period 5 Task %...
-
The table lists the actual annual cost y to drive a midsize car 15,000 miles per year for selected years X. (a) Predict whether the correlation coefficient is positive, negative, or zero. (b) Find a...
-
Solve the preceding problem for the following data: (x = - 150 MPa, (y = - 210 MPa, Txy = - 16 MPa, and ( = 50o. the material is brass with E = 100 GPa and v = 0.34?
-
Select a combination of public and private sector organizations and identify the extent to which their vision and mission statements: i. Are what Rumelt calls template-style strategy (see Rumelt...
-
Two electrons move near each other and at the instant shown in Figure P28.85 are \(2.0 \mathrm{~mm}\) apart. The speed of electron 1 is \(v_{1}=300 \mathrm{~m} / \mathrm{s}\), that of electron 2 is...
-
The following information was taken from the comparative financial statements of Tulip Corporation: Net income for year . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
-
6. To a ground observer the block C is moving with v, and the block A with v. B is moving with v relative to C as shown in the figure. Identify the correct statement. (a) V-V =Vo (b)= A C B (c) V+V =...
-
During the current year, Sports +, Inc., operated two business segments: a chain of surf and dive shops and a small chain of tennis shops. The tennis shops were not profitable and were sold near...
-
What is your favorite brand? What kind of brand? Describe the brand in as much detail as possible, including product/service category, target market(s) served, overall prices, product levels, brand...
-
Alina is single, employed and dabbles in real estate. This year her AGI will be $116,000 and will have a $32,000 loss from her rental property that she actively participated in managing. How much in...
-
Carbonyl fluoride, COF 2 , is an important intermediate used in the production of fluorine - containing compounds. For instance, it is used to make the refrigerant carbon tetrafluoride, CF 4 via the...
-
One of your work colleagues has approached you for help with completing a spreadsheet model that they are constructing to determine whether they should sell their existing motor vehicle to NLC and...
-
Calculate the assessment ratio for all properties, which reflects the ratio of a parcel's assessed value to its market value. Use the parcel's most recent sale price as a proxy for its current market...
-
7-Find the total power (in W) delivered by the battery in the following circuit, R= 20 N. (a) 40 (b) 25 (c) 22.5 (d) 20 (e) 16 20 V 2R 2R w J W 2R
-
Identify the trading opportunities for Small and Medium Enterprises (SMEs) in Malaysia. Requirement- Define, cross-define, explanation (explain your understanding after seeing the definition),...
-
Consider the reaction of acetic acid in water CH 3 CO 2 H(aq) + H 2 O(l) CH3CO 22 (aq) + H 3 O + (aq) where Ka 5 1.8 3 1025. a. Which two bases are competing for the proton? b. Which is the stronger...
-
Considering the following SDE for the spot rate: drt = ( rt)dt + rtdWt (19.41) Using the following set of parameters: r0 = 0.03 (19.42) = 1.5 (19.43) = 0.06 (19.44) = 0.25 (19.45) T = 1 (19.46)...
-
We consider the random process St, which plays a fundamental role in Black-Scholes analysis: where Wt is a Wiener process with W0 = 0, is a "trend" factor, and (Wt Ws) N (0, (t s)) which says...
-
Consider the mean-reverting process dSt = ( St)dt + StdWt. Create a time discretization of = 1/252 and assume that the appropriate monthly model parameters are: = 0.75 = 0.35 S0 = 40 Consider the...
-
Flaherty Ltd sells two types of shoes, mens shoes and womens shoes. During the financial year ended 30 June 2019, fixed costs were $460 800 and sales were in the ratio of three units (pairs) of mens...
-
Newbery and Newstead is a public accounting firm specialising in auditing local medium-sized businesses. Fees charged for each audit are determined on the basis of identifiable hours worked on an...
-
Hotbox Ltd produces pizza boxes using two processes cutting and packaging. The production budget for the year ending 30 June 2019 estimated raw materials use of $400 000, factory overhead of $270...
Study smarter with the SolutionInn App