Write a single statement that computes the product

Assignment Help Computer Engineering
Reference no: EM132107281

This program need to write in Assembly language, Can someone help me on this problem?

Part 1:

1) Write a single statement that computes the product , i is an integer.

Specifications:

a) Place the results in a register of the appropriate size, remember to consider efficient use of available resources.

b) To compute the product, you must use one or more constant expressions that computes the value. No loops or use of anything beyond Chapter 3 in the book should be used.

c) The register must be zeroed out before the result is stored.

Part 2:

1) Write a short block of computational statements that causes the BX register to overflow.

2) Write a short block of computational statements that causes the CX register to set the carry flag.

Specifications:

a) Use variables as opposed to immediate values.

b) Make sure no other computations affect the outcome of this register.

c) The register must be zeroed out before it is used.

Part 3:

Using directives for creating symbolics, write a single statement that computes the number of seconds in a day.

Specifications:

a) Place the result in the EDX register.

b) The statement that is placed in the program and expanded should be SECONDS_IN_DAY.

c) The EDX register should be zeroed out before it is used.

d) Make sure the statement uses the symbolics to the fullest extent; that is, SECONDS_IN_DAY should be the only expression on the instruction line.

Additional information:

A program template is provided below.

DO NOT COPY PASTE THE TEMPLATE! You must type it.

TITLE pa2.asm

; Header comment block as shown in lecture notes

INCLUDE Irvine32.inc

.data

{ your variables should be defined here}

.data?

{used as necessary}

.code

main PROC

{executable code here}

call DumpRegs

exit

main ENDP ; end of main procedure

END main ; end of source code

Reference no: EM132107281

Questions Cloud

Write a program that converts temperature : Write a program that converts temperature from Celsius to Fahrenheit or vice versa, depending on user's input.
Should michael take a multivitamin and mineral supplement : A) Should Michael take a multivitamin and mineral supplement "just for the insurance"? Why or why not?
Why program objectives needs to be defined : Why Program Objectives needs to be defined in details prior to program and Project Plan? Clarify the statement with proper explanation.
Print each row of the matrix in descending order : Ask the user for the name of a file, read the name of the file from standard input. The first row of the file contains the number of rows and columns in file.
Write a single statement that computes the product : Place the results in a register of the appropriate size, remember to consider efficient use of available resources.
Relationship between being overweight or obese : 1. What symptoms of type 2 diabetes does Mrs. Folley manifest? Explain the pathophysiology of these symptoms.
Displays a count down to zero from a number supplied : Displays a count down to zero from a number supplied by the user at the command line.
Discuss the complications of liver disease : Patient presents with malnutrition secondary to liver disease. Name two (2) nutrition or medical problems and discuss the complications of liver disease
Write a function called reverselist that creates a new list : Write a function called reverseList that creates a new linked list containing student_t nodes of an input linked list in the reverse order without destroying.

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