Calculate the sum of the two variables left and right

Assignment Help Computer Engineering
Reference no: EM133642258

Assignment: Computer Project Assembly Language Software Use Masm & Visual Studio- Programming Project

You will write a simple assembly language program that performs a few arithmetic operations. This will require you to establish your programming environment and create the capability to assemble and execute the other assembly programs that will be part of this course.

Your North Lake College student ID number which is ( 3711565 ) Begin by splitting your student ID into two different values. Assign the four most significant digits to a variable called 'left' and the three least significant digitsto a variable called 'right'.

You must choose the data type that is appropriate for the range of decimalvalues each variable can store. You will choose a data type when you define each of the variables in your program. Try to make efficient use of memory.

Calculate the sum of the two variables 'left' and 'right'. Store this result in a variable called 'total'.

Calculate the positive difference between the variables 'left' and 'right'. Store this result in a variable called 'diff'.

Define a character string called 'message' that contains the characters, "Hello World!".

Define an array of data type WORD called 'numbers' that is initialized to the following values: 1, 2, 4, 8, 16, 32, and 64.

Write assembly language code using what you know so far (do not look ahead in the book just yet) to determine the length of 'numbers'. Storethis value in a variable called 'arrayLength'.

Move the contents of the variable 'left' into the EAX register.
Move the contents of the variable 'right' into the EBX register.
Move the contents of the variable 'total' into the ECX register.
Move the contents of the variable 'diff' into the EDX register.
Move the contents of the variable 'arrayLength' into the ESI register.

Call the author's DumpRegroutine to display the contents of the registers.

Submit your assembly language source code and a screen shot of the output. Call your file "XYProject1.asm" where "X" and "Y" are your first and last initials respectively. If your name were John L. Smith, the file would be called, "JSProject1.asm".

Instruction

Use the Project32 provided by the textbook author (here).https://asmirvine.com/index.htm (Getting Started with MASM and Visual Studio is where you want to go.) Delete the .asm code provided in Project32, copy your .asm code and paste it into the project. Compile it by choosing Build >> Build Project . If it builds successfully then run it by choosing Debug >> Start without debugging. (This is also how I will be grading your submitted projects.)

A. For this program you must include the Irvine library (INCLUDE Irvine32.inc). This is explained in Chapter 5 in our book.

B. You also must call DumpRegs in your program. Your output will look something like the sample output.

Reference no: EM133642258

Questions Cloud

Describe how they all come together to make : Describe how they all come together to make (or break) motivation, leadership, empowerment, and communication for you,
Explore the role of quality management systems : Explore the role of quality management systems in manufacturing or service configuration and how they have influenced supply chain quality.
How component fits into overall professional scrum framework : For your discussion, pick one of the components of the framework and summarize what it entails and how it fits into the overall Professional Scrum framework.
Strategic management specialist : Jaime is a strategic management specialist who uses a tool to assess the competitiveness and structure of all the urology practices in his state.
Calculate the sum of the two variables left and right : COSC 2425- Calculate the sum of the two variables left and right. Define a character string called message that contains the characters, Hello World!.
How might development of skills : How might development of skills you feel you lack help you to become better leader? How do you feel skills you possess will support you in your leadership?
How controlling processes can affect project integration : Explain how controlling processes can affect project integration, scope, time, cost, quality, and especially risk.
Analyze the protocols on two different operating systems : Analyze the protocols on at least two different operating systems from a threat interception standpoint.
Explain your approach to minimizing your companys impact : Explain your approach to minimizing your company's impact on the environment, considering all aspects of your operations.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd