Calculate the positive difference between the variables

Assignment Help Other Subject
Reference no: EM132781933

Assignment: 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 is a 7-digit number. 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 digits to a variable called 'right'.

You must choose the data type that is appropriate for the range of decimal values 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.

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

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

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

4. 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'. Store this 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 DumpReg routine to display the contents of the registers.

Reference no: EM132781933

Questions Cloud

Explain two challenges facing global marketing leaders : Explain two challenges facing global marketing leaders. Explain the impact and provide at least one strategy to address and tackle each challenge identified.
How can coca cola use imc given the variety of products : How can Coca Cola use IMC given this variety of products? Your reference to Coca Cola is interesting. They have a wide variety of products such as regular coca
Prepare journal entries on the books of Porto Douro Company : Assuming the net method is used for recording inventory purchases, prepare the journal entries on the books of Porto Douro Company
What about products and services that have been ignored : Forecasting provides very useful projections for established products and services, but newly introduced products and services have very different success.
Calculate the positive difference between the variables : Calculate the positive difference between the variables 'left' and 'right'. Store this result in a variable called 'diff'. Define a character string called.
What amount should be reported as cash in bank on June : Checks outstanding on June 30 amounted to P300,000 including certified check for P100,000. What amount should be reported as cash in bank on June
Discuss the new skills acquired from the class : How would you apply your new knowledge of your current and/or future profession? discuss the new skills you acquired from this class?
List the potential solutions to embankment stability risk : List the potential solutions to embankment stability risk?
Construct railway embankments : What materials that were traditionally used to construct railway embankments have the potential to cause subterranean fires

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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