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...
-
Dazo entered the San Jose, California, airport to board a flight to St. Louis, where she was to take a connecting flight to Toronto. At the security checkpoint, then operated by Globe Airport...
-
Find the function represented by the following series and find the interval of convergence of the series. (Not all these series are power series.) ,-kx k=0
-
At the end of each year a self-employed person deposits $1,500 in a retirement account that earns 7 percent annually. a) How much will be in the account when the individual retires at the age of 65...
-
Following is a description of the basic financial statements extracted from an example citys managements discussion and analysis (MD&A). Review the description and respond to the requirements at the...
-
show work What is the beta of the following portfolio? (Do not round any intermediate calculations. Round your final answer to 2 decimal below.)
-
"Milky Milk" has three (3) warchouses and five (5) retail stores. The company needs to transport its milk tanks from the warehouses to the stores. The supply in each warehouse, the demand of each...
-
Pharoah Company begins operations on April 1. Information from job cost sheets shows the following. Manufacturing Costs Assigned Job Number April May June Month Completed 10 $5,760 $5,120 May 11...
-
RQ3: How might finance affect the formulation and application of corporate strategies?
-
How does this scene relate to a person who is?
-
How does Max learn to apologize?
-
Why are some on the spectrum bullied, and how must a parent feel?
-
Question 1: Response to Theresa Johnson?
-
A manufacturing company reports the following information. \ table [ [ , Current Year, 1 Year Ago, 2 Years Ago ] , [ Raw materials inventory, ending,$ 1 6 5 , 0 0 0 , $ 1 9 1 , 8 0 0 , $ 1 9 8 , 8 0 0
-
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...
-
10.9. Investco, a West Coast research company, must decide on the level of computer technology it will buy for its analysis department. Package A, a midlevel technology, would cost $2.5 million for...
-
10.6. Consider the cash flows associated with undertaking project X. a. Is this an early or later cash flow stream? b. Based on the term structure of interest rates in exercise 10.5, what is the...
-
10.8. ABC Metalworks wants to determine which model sheetcutter to purchase. Three choices are available, (1) machine 1 costs the least but must be replaced the most frequently, (2) machine 2 has...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App