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

  Potential vulnerabilities does social media network

How are new technologies affecting OSINT collection and analysis? What potential vulnerabilities does a social media network present?

  How would acknowledging different cultural perspectives

How would acknowledging different cultural perspectives be useful in your personal or work life

  How national culture influence organisational practices

In this assignment need to choose two cultures one is my own AND ONE ANOTHER culture to compare each other

  What is the role of assessment in early childhood education

What is the role of assessment in early childhood education, including instruction, accountability, forming relationships with children. Explain how it can be misused and how to avoid misuse.

  Examine human factors including resistance to change

Create a change proposal for a new technology that will contribute. Examine human factors including resistance to change into the expanded use of informatics.

  Are law enforcement cameras an invasion of privacy

Do cell phones create a barrier to social connections? Does a public school's enforcement of school uniforms limit freedom of expression? Are students being tested too much? Are law enforcement cameras an invasion of privacy?

  Something being good because the gods love it

whats the difference between something being good because the Gods love it and  something being loved by the gods because its good?

  There is definitely some evidence which distrust of

a colleague in social psychology once told me that he believes affect drives all attitudes. in other words we have

  Social work practice with respect to policy advocacy

Analysis of historical divides Jane Addams and Mary Richmond) and historical influences on current social work practice with respect to policy advocacy-action

  Determine ethnicity of an immigrant or refugee population

Choose a specific culture or ethnicity of an immigrant or refugee population. Analyze their cultural and social norms.

  Identify the role of the aprn in assisting with the policy

Health policy unfolds daily and drives clinical practice in the U.S. You will investigate current policies or legislation underway for a specific health-related

  Discuss the strengths and weaknesses of the given doctrine

Discuss the strengths and weaknesses of this doctrine. How would you amend it, if at all? Discuss your opinions of unions within healthcare settings.

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