Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objectives: Set up Visual Studio 2015 Be able to code, assemble, and execute a program that adds and subtracts integers Be able to define symbolic

Objectives:

  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 authors 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 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions