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...
-
From your own life, choose three processes. These may be something like selecting a movie on Netflix, making breakfast, or registering for an account on a new social media platform. For each,...
-
Find the exact length of the portion of the curve shown in blue. r= 3+ 3 sin 0
-
What is meant by the hockey stick pattern?
-
Dr. Carol Harris, CPA, is a single taxpayer and she lives at 674 Yankee Street, Durham, NC 27409. Her Social Security number is 793-52-4335. Carol is an Associate Professor of Accounting at a local...
-
Project on Finance Part 1: taxes, income, budget 1) Search for a reputable online source that can tell you the average salary you can expect to make when you graduate and get the career of your...
-
Reconsider Prob. 253. Assuming a linear pressure increase during the compression, estimate the energy needed to compress the water isothermally. Data from Problem 53. A frictionless piston-cylinder...
-
What is the present value of an operating lease that involves payments of $12,000 per year (the end of the year) for14 years with no possibility of purchase at the end of the lease term. Assume that...
-
The two masses are at the ends of the spring. The spring has been compressed by 1 . 4 m . When the spring is released, the 2 kg mass travels in a vertical circle. The surfaces the masses are located...
-
Sean threw a football to alexander. The ball left seans hand at a height of 2 meters. The ball reached its maximum height 2 seconds after sean released it and hit the ground 3 seconds later....
-
The Fancy Umbrella Company makes beach umbrellas. The production process requires 3 square meters of plastic sheeting and a metal pole. The plastic sheeting costs $0.50 per square meter and each...
-
Terrell Trucking Company is in the process of setting its target capital structure. The CFO believes that the optimal debt-to-capital ratio is somewhere between 20% and 50%, and her staff has...
-
A negative charge of -0.590 C exerts an upward 0.700-N force on an unknown charge that is located 0.400 m directly below the first charge. Part A What is the value of the unknown charge (magnitude...
-
On July 1, 2020, Velor Inc. acquired the following bonds, whichmanagement's business model is to hold to maturity:Bond. Price. Face. Amount PurchasedVision Consulting Inc. 11% bonds, maturity date 2...
-
Find the radius of convergence in two ways: (a) Directly by the CauchyHadamard formula in Sec. 15.2. (b) From a series of simpler terms by using Theorem 3 or Theorem 4.
-
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...
-
Using divisibility rules, determine if 342,887 is divisible by 9 .
-
Using divisibility rules, determine if 87,762 is divisible by 10 .
-
Can 43,568 pieces of mail be separated into 6 bins with the same number of pieces of mail per bin?
Study smarter with the SolutionInn App