Question: How would i write an assebly program that: The first number will be referenced by the label num1 and the second number will be referenced

How would i write an assebly program that:

The first number will be referenced by the label num1 and the second number will be referenced by the label num2.

The upper 32 bits of the sum should be placed in EDX and the lower 32 bits in EAX.

AFTER the last line of code that you wish to be executed in your program please place the label done.

Make sure that there is an instruction after the done line and a new line after that instruction. If you don't your output won't match mine.

I have included a Makefile for you that will compile your program

You must also make sure to include the done label AFTER the last line of code you want executed in your program so that I know where to set break points.

The following table shows how the numbers will be laid out in memory.

num1: | Upper 32 bits of num1 | Lower 32 bits of num1 num2: | Upper 32 bits of num2 | Lower 32 bits of num2

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!