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

Find the source voltage, Q. A semiconductor diode with IS = 10µA and a 1-k...

Q. A semiconductor diode with IS = 10µA and a 1-k resistor in series is forward-biased with a voltage source to yield a current of 30mA. Find the source voltage if the diode I-V e

Explain the 8259 microprocessor, Explain the 8259 microprocessor. 82...

Explain the 8259 microprocessor. 8259: The 8259A adds 8 vectored priority encoded interrupts to the microprocessor. This can be expanded to 64 interrupt requests with us

Determine the voltages vx using voltage division, Q. Determine the voltages...

Q. Determine the voltages Vx using voltage division and equivalent resistor reductions for the circuits shown in Figure.

Compute the voltage, Q A point charge Q 1 =-5 nC is located at (6, 0, 0). ...

Q A point charge Q 1 =-5 nC is located at (6, 0, 0). Compute the voltage v ba between two points a(1, 0, 0) and b(5, 0, 0). Comment on whether point a is at a higher potential wi

Strategic perspective of an organization, Strategic Perspective of An organ...

Strategic Perspective of An organization Strategic perspectives cover functions such as revenue, customer satisfaction, people, procedure and technology. Every organization re

Calculate the maximum power that transmitted to the load, Calculate the Max...

Calculate the Maximum Power That Transmitted To the Load? A 25 MW load at the 33 kV receiving-end busbar of a short 3-phase transmission line has a power factor of 0.8 lagging.

Basic architecture of digital switching systems, Q. Explain the basic archi...

Q. Explain the basic architecture of digital switching systems. Explain in detail companding. Ans: A simple N X N time division space switch is displayed in Figure. Switch

Draw the impedance diagram of the system, The one line diagram of a simple ...

The one line diagram of a simple power system is shown below.  The data of the system are given in the table below.  (a) Draw the impedance diagram of the system and mark all im

Role of erc - salient features of nep, Role of ERCs: A National Elect...

Role of ERCs: A National Electricity Policy is one of the key instruments for providing policy guidance to the Electricity Regulatory Commissions in discharge of their functio

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