Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

1) Using the the excerpt of an asm 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.

........................................................................................................

; Expression Calculation and using the Irvine Library ; Myname: write your name here ; date: Write date of submission here

Comment ! Description: 1. 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

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

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

Compare structured and unstructured interviews.

Answered: 1 week ago