Question: 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
Get step-by-step solutions from verified subject matter experts
