CSCI321 Project Three: First MASM Program Solved

35.00 $ 17.50 $

Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: . zip solution files instantly, after Payment


5/5 - (1 vote)


  1. Set up Visual Studio 2015
  2. Be able to code, assemble, and execute a program that adds and subtracts integers
  3. Be able to define symbolic constants
  4. Be able to create variables using all standard assembly language data types

Problem Description:

First set up Visual Studio 2015 on your computer. You may follow the instruction on author’s website. Based on the version of you Visual Studio, you may click on Getting Started with MASM and Visual Studio 2013 or Getting started with MASM and Visual Studio 2015 to follow the instruction. When reach the installation section of instruction, you need to click link to download and follow the instruction to install Example programs and link library source code for the Seventh Edition. If you use VS2015, you may download Updated 32-bit Visual Studio project for VS2015. Please notice, if you use this updated project, the existing example source file AddTwo needs to be removed from the project then add to project again appropriately.

Write a program that contain the following:

  1. Using the AddTwo program from Section 3.2 as a reference, write code to calculate the following expression, using registers: A = (A+B)-(C+D). Assign integer values to the EAX, EBX, ECX, and EDX registers
  2. Write code that defines symbolic constants for all seven days of the week. Create an array variable that uses the symbols as initializers
  3. The program must contain a definition of each data type listed in Table 3.2 in Section 3.4 of the textbook. Initialize each variable to a value that is consistent with its data type
  4. Write code defines symbolic names for several string literals. Use each symbolic name in a variable definition

Basically, these are Programming Exercises 1-4 on page 94 of the textbook. Instead of writing four separated program, you just write one program to contain all features listed above.

Please name your source file as YourNameProj3.asm