Question: 1. Starting with the windows32 project, modify the example program given in this section (provided with this below) to prompt for, input and add three
1. Starting with the windows32 project, modify the example program given in this section (provided with this below) to prompt for, input and add three numbers, and display the sum. Run the program several times with different data. Trace execution using the debugger. Has to be in assembly language (.asm).
; Example assembly language program ; adds 158 to number in memory ; Author: R. Detmer ; Date: 6/2013 586 MODEL FLAT .STACK 4096 ; reserve 4096-byte stack DATA number DWORD -105 sum DWORD? ; reserve storage for data .CODE main PROC ; start of main program code mov eax, number add eax, 158 mov sum, eax ; first number to EAX ; add 158 ; sum to memory ; exit with return code 0 mov eax,0 ret main ENDP END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
