4. [50 Points] Using the Intel Instruction Architecture Manual, assemble the following in- structions by hand...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4. [50 Points] Using the Intel Instruction Architecture Manual, assemble the following in- structions by hand and show your work. You must use the chosen opcode and break down any MODR/M bytes with appropriate operands. Simply stating the opcode will not suffice. [4 Points For Each Opcode Encoding] pop pop pop add push retn edx ecx eax ecx, eax edx ; Use opcode 0x8F /0 ; Use opcode 0x8F /0 ; Use opcode 0x58 ; Use opcode 0x03 ; Use opcode 0xFF /6 ; 'Near' return (a) [6 Points] Explain line-by-line what the function is doing. (b) [5 Points] How many arguments does this function take and why? [Hint: What is the top value on the stack upon entry to this function?] (c) [5 Points] Which register is being used as a return value (not the return address)? (d) [10 Points] Consider the following code and hexadecimal representations. Which is the correct representation and why? xor eax, 0x55667788 i) 81 FO 55 66 77 88 ii) 35 88 77 66 55 iii) 81 30 88 77 66 55 iv) 81 70 00 88 77 66 55 v) None of the above 4. [50 Points] Using the Intel Instruction Architecture Manual, assemble the following in- structions by hand and show your work. You must use the chosen opcode and break down any MODR/M bytes with appropriate operands. Simply stating the opcode will not suffice. [4 Points For Each Opcode Encoding] pop pop pop add push retn edx ecx eax ecx, eax edx ; Use opcode 0x8F /0 ; Use opcode 0x8F /0 ; Use opcode 0x58 ; Use opcode 0x03 ; Use opcode 0xFF /6 ; 'Near' return (a) [6 Points] Explain line-by-line what the function is doing. (b) [5 Points] How many arguments does this function take and why? [Hint: What is the top value on the stack upon entry to this function?] (c) [5 Points] Which register is being used as a return value (not the return address)? (d) [10 Points] Consider the following code and hexadecimal representations. Which is the correct representation and why? xor eax, 0x55667788 i) 81 FO 55 66 77 88 ii) 35 88 77 66 55 iii) 81 30 88 77 66 55 iv) 81 70 00 88 77 66 55 v) None of the above
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these algorithms questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Your company, Printers Inc., is considering investing in a new plant to manufacture a new generation of 3D printers developed by the firms research and development (R&D) department. A consulting...
-
Which was not found in the research on leader-member exchange? a. Leaders with different relationships for high and low LMX subordinates were more effective b. Leaders provided more benefits to high...
-
A73 kg man stands on a level bridge of length L. He is at distance L/4 from one end. The bridge is uniform and weighs 2.7kN what are the magnitudes of the vertical forces on the bridge from its...
-
How do sleep, illness, and injury affect physical health at work?
-
BAA is a private company that operates some of the largest airports in the United Kingdom, including Heathrow and Gatwick. Suppose that BAA recently commissioned your consulting team to prepare a...
-
Write a program to check whether the given input is digit or lowercase character or upper case character or a special character (use 'if-else-if' ladder)
-
Suppose future astronauts are living on a Martian base when a major solar flare occurs. How long will it be before the charged particles ejected from the Sun during the flare reach them? (Hint: use...
-
Q14: A current of 4 A is passed through a solenoid of 250 turns per meter; the magnetic field developed by the solenoid is B T. If the magnetic field developed by the solenoid is reduced to half of...
-
During February, Alexander Inc. worked on two jobs with the following data: Units in each order Units sold Materials requisitioned Direct labor hours Direct labor cost Job 12 Job 13 100 units 200...
-
10. Label and explain in details the following diagram A 12. 1 Give three functions of E. Zinc E B + C D Copper 13. Give an ideal principle of predicting a performance of a fuel cell and give an...
-
What is the summary of this paper? What can be an introduction to introduce the paper? What can be a hypothesis of the paper? what is the methodology? What is the result? What is the Analysis if...
-
If 12,500TL is invested in compound interest at 20% per annum, what will be its value at the end of the second year? (5 POINTS)Our formula Sa (1 + 1)n
-
Determine the component that prevent planetary carrier from rotating in two direction of rotation. Explain the problem that may occur to transaxle operation if the determined component is failure.
-
H Corporation has a bond outstanding. It has a coupon rate of 8 percent and a $1000 par value. The bond has 6 years left to maturity but could be called after three years for $1000 plus a call...
-
Bea Jones (age 32) moved from Texas to Florida in December 2011. She lives at 654 Ocean Way, Gulfport, FL 33707. Bea's Social Security number is 466-78-7359 and she is single. Her earnings and income...
-
In the 2012 tax year, Michelle paid the following amounts relating to her 2010 tax return: Tax deficiency..........................................$5,000 Negligence...
-
During 2012, Tom sold Sears stock for $10,000. The stock was purchased 4 years ago for $13,000. Tom also sold Ford Motor Company bonds for $35,000. The bonds were purchased 2 months ago for $30,000....
-
You own your own firm, and you want to raise \($40\) million to fund an expansion. Currently, you own 100% of the firms equity, and the firm has no debt. To raise the \($40\) million solely through...
-
Using the data from Table 11.3, what is the covariance between the stocks of Alaska Air and Southwest Airlines? Alaska Southwest Ford General Microsoft HP Air Airlines Motor Kellogg Mills Volatility...
-
Suppose Wesley Publishings stock has a volatility of 55%, while Addison Printings stock has a volatility of 20%. If the correlation between these stocks is 30%, what is the volatility of the...
Study smarter with the SolutionInn App