Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Using the included excerpt of masm program, modify the code to implement the mathematical expression specified. 2) Dump the registers to the screen.

1) Using the included excerpt of masm program, modify the code to implement the mathematical expression.386 .model flat,stdcall .stack 4096 ExitProcess proto, dwExitCode:dword .code main PROC mov eax,8000h mov

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

It seems you are required to write a program in MASM Microsoft Macro Assembler that calculates an algebraic expression and then displays register valu... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems analysis and design

Authors: kenneth e. kendall, julie e. kendall

8th Edition

135094909, 013608916X, 9780135094907, 978-0136089162

More Books

Students also viewed these Programming questions

Question

Prepare adjusting entries for deferrals. AppendixLO1

Answered: 1 week ago

Question

Who do you usually turn to for help when facing a problem?

Answered: 1 week ago

Question

What have you learned about sleep that you could apply to yourself?

Answered: 1 week ago