Determine average of integers by assembly language program, Electrical Engineering

Assignment Help:

Write an assembly language program to determine average of 'n' integers.

Ans

 MOV AX, 0000; Initial sum 0000

 MOV BX, 0000

 MOV SI, 0201H

 MOV CX, [SI]

 BACK: INC SI

 INC SI

ADD AX, [SI]

JAE GO

INC BX

GO: LOOP BACK

MOV [0401], AX

MOV [0403], BX

 INT 3


Related Discussions:- Determine average of integers by assembly language program

Give the alternate functions for the port pins of port3, Give the alternate...

Give the alternate functions for the port pins of port3? RD - Read data control output. WR - Write data control output. T1 - Timer / Counter1 external input or test pin.

Evaluate the travel time of signal, Suppose that the length of a 10Base-5 ...

Suppose that the length of a 10Base-5 cable is 2500 metres. If the speed of propagation in a thick co-axial cable is 60% of the speed of light, how long does it take for a bit to

Test equipment , What is the function of the time-base generator as used in...

What is the function of the time-base generator as used in an oscilloscope

Vlsi, what is the difference between latch and flipflop

what is the difference between latch and flipflop

Illustrate the experts model of GPS system, Illustrate the experts model of...

Illustrate the experts model of GPS System A fundamental expert system is made up of the below elements: Setting up an Expert System -  Information is collected

Discuss the benefit and limitations of utilizing wind energy, a. Discuss th...

a. Discuss the benefits and limitations of utilizing wind energy for electricity generation. b. Draw the block diagram representation of a thermal power generation unit. Illustr

What is interfacing, What is interfacing? An interface is a shared boun...

What is interfacing? An interface is a shared boundary among the devices which includes sharing information. Interfacing is the process of making two dissimilar systems communi

Fourier deries, how to compute the fourier series expansion of a rectangula...

how to compute the fourier series expansion of a rectangular pulse train

Show equivalent circuit of a synchronous machine, Equivalent Circuit of a S...

Equivalent Circuit of a Synchronous Machine A review of the material about elementary synchronous machines is very helpful at this stage to recall the principles of operation f

Stack operation, Stack Operation Stack is a group of memory  locations...

Stack Operation Stack is a group of memory  locations which  are part of the  same read write memory  used for  storing  data  temporarily  during the execution of the  progra

Write Your Message!

Captcha
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