So my teacher assigned this project. He is incapable of teaching us anything and assumes we are born with the knowledge of assembly language. I am so lost. any help is greatly appreciated. The full question is
For this program, you will need to add two 32-bit numbers together using 16 bit registers and then store the result into the data segment of memory.
Hint: As the programmer, you decide just how the numbers in the Data Segment are initiated.
Copyright © 2024 Q2A.MX - All rights reserved.
Answers & Comments
Verified answer
You have two 32bit (DWORD) values: value1, value2
Take the low order 16bits (WORD) from value 1 and add it to the low order word of value2. Store the result as the low order WORD in the data segment. Take the carry out (CO) from the addition operation and add it to the high order word from value 1 and value 2. Store the result as the high order word in the data segment.
353 right? haha
he is a dick.