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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started