Calculate the sum of the two variables left and right

Assignment Help Computer Engineering
Reference no: EM132626096

Assignment: Programming Project 1

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'.

1. Move the contents of the variable 'left' into the EAX register.

2. Move the contents of the variable 'right' into the EBX register.

3. Move the contents of the variable 'total' into the ECX register.

4. Move the contents of the variable 'diff' into the EDX register.

5. Move the contents of the variable 'arrayLength' into the ESI register.

6. Call the author's DumpReg routine to display the contents of the registers.

Reference no: EM132626096

Questions Cloud

What business drivers were impacted from the breach : Many types of systems are networked together, and the number of devices that are added to this network increases every year. With this explosive growth.
How you can implement concepts learned in the future : Relates to your job or future job, if unemployed. How you can implement concepts learned in the future.
Differentiate block ciphers from stream ciphers : Differentiate block ciphers from stream ciphers and contrast symmetric from asymmetric cryptography. Illustrate with examples.
In product screening stage of new product development : In the product screening stage of new product development, what are some questions that may need to be explored by the operations function?
Calculate the sum of the two variables left and 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.
Identify public service organization : Identify a public service organization you are familiar with other than Arizona State Unversity. A brief description of the organization you are analyzing.
What was the amount identifiable intangible assets : What was the amount of goodwill as percentage of total consideration paid? What was the amount identifiable intangible assets
Describe how your selected technique is used : Choose one of the following alternative techniques, summarize it and provide examples of how your selected technique is used, and how you would apply it.
Investigating the career of academic : You are investigating the work life and/or personal life of an academic or advanced researcher;

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