1) Using the included excerpt of masm program, modify the code to implement the mathematical expression...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1) Using the included excerpt of masm program, modify the code to implement the mathematical expression specified. 2) Dump the registers to the screen. 3) Write your First and last name to the screen to a new line. 4) Document your program with comments where indicated. 5) Upload a zip file with your program (the .asm) and a screen shot of the outputs to be graded. Expression Calculation and using the Irvine Library ; Myname: write your name here ; date: Write date of submission here Comment ! Description: 1. Using the AddTwo program from Section 3.2 as a reference, write a program that calculates the following expression, using registers: A = (A + B) - (C + D). Assign integer values to the EAX, EBX, ECX, and EDX registers. A=8000h, B= 2000h, C= 1000h, D=5000 2. Using the Irvine library dump the registers to the screen to inspect your results 3. Using the Irvine library write the followng string to the screen: My name is: Your First and Last Name" ! .386 .model flat,stdcall .stack 4096 ExitProcess proto, dwExitCode:dword .code main PROC mov eax,8000h mov ebx,2000h mov ecx,1000h mov edx,5000h add eax, ebx; write yor comment here add ???, ???; write your comment here sub eax,ecx; write your comment here INVOKE ExitProcess,0 main ENDP END main 1) Using the included excerpt of masm program, modify the code to implement the mathematical expression specified. 2) Dump the registers to the screen. 3) Write your First and last name to the screen to a new line. 4) Document your program with comments where indicated. 5) Upload a zip file with your program (the .asm) and a screen shot of the outputs to be graded. Expression Calculation and using the Irvine Library ; Myname: write your name here ; date: Write date of submission here Comment ! Description: 1. Using the AddTwo program from Section 3.2 as a reference, write a program that calculates the following expression, using registers: A = (A + B) - (C + D). Assign integer values to the EAX, EBX, ECX, and EDX registers. A=8000h, B= 2000h, C= 1000h, D=5000 2. Using the Irvine library dump the registers to the screen to inspect your results 3. Using the Irvine library write the followng string to the screen: My name is: Your First and Last Name" ! .386 .model flat,stdcall .stack 4096 ExitProcess proto, dwExitCode:dword .code main PROC mov eax,8000h mov ebx,2000h mov ecx,1000h mov edx,5000h add eax, ebx; write yor comment here add ???, ???; write your comment here sub eax,ecx; write your comment here INVOKE ExitProcess,0 main ENDP END main
Expert Answer:
Answer rating: 100% (QA)
It seems you are required to write a program in MASM Microsoft Macro Assembler that calculates an algebraic expression and then displays register valu... View the full answer
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date:
Students also viewed these programming questions
-
What were the different crop insurance programmes operationalized in India from time to time? Why are such changes in crop Insurance are needed? Explain with an example. What are the pros and cons of...
-
1. Stella Scott has a work-study position at the fitness center on campus. Her manager has asked her to create a worksheet to keep track of attendance and revenue for the fitness center's classes....
-
You have been employed to create program to assist the manager of a coffee shop. You decide to make a prototype application in Java to show what you can do, and to be able to ask the manager what...
-
Suppose in a given area there are three power plants, each of which emits SO 2 with different intensities. The abatement cost functions for each firm j are: (a) Set up the conditions for the socially...
-
A small object of mass m carries a charge q and is suspended by a thread between the vertical plates of a parallel-plate capacitor. The plate separation is d. If the thread makes an angle with the...
-
The radio telescope in Arecibo, Puerto Rico, has a diameter of 305 m. It can detect radio waves from space with intensities as small as 1026 W/m2. (a) What is the average power incident on the...
-
In a random sample of 160 workers exposed to a certain amount of radiation, 24 experienced some ill effects. Construct a \(99 \%\) confidence interval for the corresponding true percentage using the...
-
For the year ended 2010, Jocelyn Morris, CPA, has been engaged to audit Rogers, Inc, who is a continuing client. Jocelyn has assessed the control risk for the company at the maximum for all financial...
-
Korda International Inc. recently issued new securities (common shares and bonds) to finance a new project with a cost $16 million. The equity issued had a flotation cost of 8%, while the debt issued...
-
Macon Machines Company began operations on November 1, 2024. The main operating goal of the company is to sell high end robots. Customers may pay using cash or if appropriate, credit is extended to...
-
Mentol Inc. incurs the following costs to produce 10,000 units of a subcomponent: Direct materials $8,400 Direct labor 11,250 Variable overhead 12,600 Fixed overhead 16,200 An outside supplier has...
-
We consider an investment in a European call option. The investment horizon is [0,7]. The option will mature at T > 7 with strike price K and it is written on a non-dividend-paying stock whose price...
-
The following information is available regarding the labour costs in a factory department for a Week: Payroll hours: Production Training Idle time Total Rate per hour: Basic Overtime premium Indirect...
-
For each case, a-k, use the equation to find the AEC AEC AE op & maint+ [First Cost ia - ic - trd id dr ic = rd id + (1-rd) * ie stia, n)-s Salv v (4,ila, n) t(AE depr}]/1 t) ie= return on equity,...
-
An apple farmer has determined that if he plants 100 trees per acre, he of 50 bushels per tree. For every tree that he plants over 100, the yield bushels per tree. Let X be the number of trees over...
-
An open loop state space system with A = B = [], C = [10] and D = 0 is given: u B muta X. B D X. A Fig. 1 A proportional block is added to this system to make closed loop system: D X K Gain C -1 -3,...
-
Explain the significance of ROC with a diagram.
-
Maria Castigliani is head of the purchasing department of Ambrosiana Merceti, a medium-sized construction company. One morning she walked into the office and said, The main problem in this office is...
-
After getting to know them better, you have approached Williwonks management people with your ideas on possible systems improvements that could address some of the problems or opportunities given in...
-
Williwonks Chocolates of St. Louis makes an assortment of chocolate candy and candy novelties. The company has six in-city stores, five stores in major metropolitan airports, and a small mail-order...
-
Who should be trained to use the new or modified information system?
-
Using the demand and cost curves of an individual firm in oligopoly, demonstrate the effects of each of the following: a. The Clean Air Act b. The Nutrition and Labeling Act c. A ban on smoking...
-
Kodak has developed an important brand name through its advertising, innovation, and product quality and service. Suppose Kodak sets up a network of exclusive dealerships, and one of the dealers...
-
Explain why a market in which broadcast licenses can be purchased might be more efficient than having the FCC assign licenses on some basis designed by the FCC.
Study smarter with the SolutionInn App