Recent Question/Assignment

PJ 4 – Windows32 Sum3 Diff2
Please follow the instructions to complete this project assignment.
(1) Go to Internet: http://www.jblearning.com/catalog/9781284036121/
(2) Click Sample Materials in the middle of the panel.
(3) Click Visual Studio 2015 Files to download VS_2015_Introduction_files.zip into your Downloads folder.
(4) Create a new folder Visual Studio Detmer in your USB drive.
(5) Click to open VS_2015_Introduction_files.zip (in your Downloads folder) to see all the contents. Copy all those folders and files (under the zip folder) into your USB drive folder: Visual Studio Detmer.
(6) Open your Visual Studio 2019. In Visual Studio, click File ? Open ? Project/Solution, and open your USB drive folder: Visual Studio Detmer. Double-click its sub-folder Windows32, and click windows32.sln, and click Open button. Now, you are running this windows32 application.
(7) Double-click the file example.asm (in Solution Explorer) to show its contents on the center panel.
(8) Right-click the file example.asm, and rename it to Sum2Numbers.asm.
(9) Modify Sum2Numbers.asm program as follows:
[a] The top 3 lines must be comments to show Author, Date, and Purpose.
[b] Remove those blank lines from this program so that the complete program can be displayed on the
center panel. It may have only 32 lines now.
[c] Comment each line properly to show that you really understand what each line is doing there.
(10) Copy and paste Sum2Numbers.asm program into section (A) below.
(11) Build ? Rebuild Windows32 application. Click Local Windows Debugger to run this program.
You need to enter two numbers in order to get the sum to display. Make sure this program runs with
no errors of any kind. Try to test run this application at least 3 times.
(12) Run a test of Sum2Numbers.asm program, and show the three displays on section (B) below.
In other words, you need to make a screen print (by Ctrl+Alt+PrintScrn) and paste (Ctrl+V) each
display to section (B) below.
(13) Right-click window32 project, click Add ? New Item to create Sum3Numbers.asm file.
(14) Right-click window32 project, click Add ? New Item to create Diff2Numbers.asm file.
(15) Copy the entire code from Sum2Numbers.asm into Sum3Numbers.asm and Diff2Numbers.asm.
(16) Modify the program Sum3Numbers.asm as follows:
[a] Change the Purpose (on line 3) as “To sum up 3 numbers entered by the user and show the sum”.
[b] Change this program so that it will ask for 3 numbers from the user, and then display the sum.
[c] This windows32 application will allow only one procedure with the name _MainProc. To run this
program, you need to use the name _MainProc for PROC, and use different PROC names (such as
_MainProc2) for all other assembly programs.
Another way to solve this problem is to modify framework.c program so that this driver program
will call your proc (such as PJ4Sum3, instead of MainProc) directly.
[d] Fully test this program to make sure it runs successfully to get 3 numbers from the user, and display
the sum correctly.
(17) Copy and paste Sum3Numbers.asm program into section (C) below.
(18) Run a test of Sum3Numbers.asm program, and show the four displays on section (D) below.
In other words, you need to make a screen print (by Ctrl+Alt+PrintScrn) and paste (Ctrl+V) each
display to section (D) below.
(19) Modify the program Diff2Numbers.asm as follows:
[a] Change the Purpose (on line 3) as “To subtract second number from the first number, and show the
difference”.
[b] Change this program so that it will ask for 2 numbers from the user, and then display its difference,
which is (number1 – number2).
[c] This windows32 application will allow only one procedure with the name _MainProc. To run this
program, you need to use the name _MainProc for PROC, and use different PROC names for all
other assembly programs.
[d] Fully test this program to make sure it runs successfully to get 2 numbers from the user, and display
the difference correctly.
(20) Copy and paste Diff2Numbers.asm program into section (E) below.
(21) Run a test of Diff2Numbers.asm program, and show the three displays on section (F) below.
In other words, you need to make a screen print (by Ctrl+Alt+PrintScrn) and paste (Ctrl+V) each
display to section (F) below.

(A) The following is my source program: Sum2Numbers.asm. You must copy/paste your source code from your Visual Studio. As you may see, the font of source code in Visual Studio is Consolas, not Courier New or Times New Roman. You must not show screen prints here.

(B) The following is the three displays of testing the program Sum2Numbers.asm. (You must Ctrl+Alt+PrintScrn each display, and then paste it to here.)

(C) The following is my source program: Sum3Numbers.asm. You must copy/paste your source code from your Visual Studio. As you may see, the font of source code in Visual Studio is Consolas, not Courier New or Times New Roman. You must not show screen prints here.

(D) The following is the four displays of testing the program Sum3Numbers.asm. (You must Ctrl+Alt+PrintScrn each display, and then paste it to here.)

(E) The following is my source program: Diff2Numbers.asm. You must copy/paste your source code from your Visual Studio. As you may see, the font of source code in Visual Studio is Consolas, not Courier New or Times New Roman. You must not show screen prints here.

(F) The following is the three displays of testing the program Diff2Numbers.asm. (You must Ctrl+Alt+PrintScrn each display, and then paste it to here.)

Looking for answers ?