Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93094750

Have any Question?


Related Questions in Computer Engineering

Suppose a firm is employing all its inputs so that the mrp

Suppose a firm is employing all its inputs so that the MRP per dollar spent on each sentence is the same. this suggest that: a) amount of each resource employed will depend on both its price and its productivity b) price ...

Question what is stp what is rstp and what methods does

Question : What is STP, what is RSTP, and what methods does Cisco provide to make these two methods work better as networks grow? The response must be typed, single spaced, must be in times new roman font (size 12) and m ...

Using c language how to write a function name bsqrt that

Using C++ language, how to write a function name bsqrt that will compute the square root of a number using the Babylonian method. This function will take the number x to compute the square root for and the number of iter ...

Question the subnet mask for a class c network is

Question : The subnet mask for a class C network is 255.255.255.248. How many subnetworks are available? How many assignable hosts ids per subnet? The response must be typed, single spaced, must be in times new roman fon ...

The equation of regression line for sons heighty in inches

The equation of regression line for son's height(y) in inches versus father's height in inches is y = 35 + 0.5x. For a 72 inch tall father, what would we predict for the son's height?

1 the reliability of a hard-disk drive is typically

1. The reliability of a hard-disk drive is typically described in terms of a quantity' called mean time between failures (MTBF). Although this quantity' is called a "time, " the MTBF actually is measured in drive-hours p ...

Ellen is an anthropologist who has been working at olduvai

Ellen is an anthropologist who has been working at Olduvai Gorge in Tanzania for the past six months. She has been conducting research on the Internet. She finds a Web site with an article that proposes a revolutionary t ...

From the following information how would i work out the

"From the following information, how would I work out the standard error of the estimate for the regression model (in excel)? Multiple R=0.7545, Adjusted R Square=0.5077, Regression df=1, Residual df=7 SS=27.37 MS=3.91, ...

In this project you will format a document you will select

In this project, you will format a document. You will select and format text and then use the Find and Replace command to correct errors in the document. You will convert text to a numbered list as well as a bulleted lis ...

Question what is the smallest value of n such that an

Question : What is the smallest value of n such that an algorithm whose running time is 1000n 2 runs faster than an algorithm whose running time is 4 n & on the same machine? Justify your answer. The response must be typ ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As