Question: Download the CPSC-240 Assignment03.docx document. Design the multiplication.asm program, and use assembly language to realize the function of the following C++ instructions. unsigned int num1

Download the CPSC-240 Assignment03.docx document.

Design the "multiplication.asm" program, and use assembly language to realize the function of the following C++ instructions. unsigned int num1 = 300,000; unsigned int num2 = 400,000; unsigned long product = 0; product = long(num1 * num2);

Assemble the "multiplication.asm" file and link the "multiplication.o" file to get the "multiplication" executable file.

Run the "multiplication" file with the DDD debugger to display the simulation results of num1 and num2, as well as the simulation results of product.

Insert source code (multiplication.asm) and simulation results (Terminal Emulator window) of the memory (num1, num2, and prod) in the document. Write an analysis to verify simulation results.

Design the "division.asm" program, and use assembly language to realize the function of the following C++ instructions. unsigned long num1 = 50,000,000,000; unsigned int num2 = 3,333,333; unsigned int quotient = 0, remainder = 0; quotient = num1 / num2; remainder = num1 % num2;

Assemble the "division.asm" file and link the "division.o" file to get the "division" executable file.

Run the "division" file with the DDD debugger to display the simulation results of num1 and num2, as well as the simulation results of quotient and remainder.

Insert source code (division.asm) and simulation results (Terminal Emulator window) of the memory (num1, num2, quotient, and remainder) in the document. Write an analysis to verify simulation results.

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!