Question: In this assignment, you will use Visual Studio to create and run a simple assembly language program. Be sure and use the windows32 project for

In this assignment, you will use Visual Studio to create and run a simple assembly language program. Be sure and use the windows32 project for this assignment. To get started, type in and run the following program. Run it and see what it does. ; SimpleProgram.asm [Name] [Date] : This simple assembly language program loads numbers into ; registers and does some math 586 MODEL FAT, C STACK DATA Target processor. Use instructions for Pentiumclass machines ;Use the flat memory model. Use C calling conventions Define a stack segment of 1KB (Not required for this example) Create a near data segment. Local variables are declared after ;this directive (Not required for this example) ;Indicates the start of a code segment. CODE main PROC ; for correct debugging mov ebp, esp mov eax, 1 mov ebx, 4 add eax, ebx ; going to demonstrate 1+4-5 main ENDP END After you see this program work, add an additional feature. I want the program to multiply 42 and 17, then add 12, and to put the result of the calculation in eax and in ecx
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
