Question: assembly language: Using registers the program will add, A = ((A-B)+(A+D))+C. A is EAX register with value of 20, B is EBX register with value

assembly language:

Using registers the program will add, A = ((A-B)+(A+D))+C. A is EAX register with value of 20, B is EBX register with value of 10, C is ECX register with value of 30, D is EDX register with value of 15. The answer should be 75. Store result in memory variable named finalVal. Out put should be in decimal.

INCLUDE Irvine32.inc

.data

finalSum dword?

.code

main PROC

move eax, 20

move ebx, 10

move ecx, 30

move edx, 15

add ebx, edx

add finalVal ;stores result

call DumpRegs ;display the registers

call WaitMsg ;so it doesn't just close when finished running

exist

main ENDP

END main

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!