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

Write a report on various types of diodes, a. write a report (at least  2 p...

a. write a report (at least  2 pages ) on various types of diodes( Show and explain  the theory, symbol, circuit, characteristics, data sheets and applications circuits using the d

Relative permeability of the cast steel, A closed magnetic circuit of cast ...

A closed magnetic circuit of cast steel having a 6cm long path of cross-sectional area 1cm 2 and a 2 cm path of cross-sectional area 0.5 cm 2 . A coil of 200 turns is wound around

Explain soft ferrites and their applications, Explain Soft ferrites and the...

Explain Soft ferrites and their applications. Soft ferrites and their applications: Such are non- metallic compounds having ferric oxide and one or two bivalent metal oxides as

Transparent latch d flip flop, Transparent latch D flip  Flop A typica...

Transparent latch D flip  Flop A typical  example  of this  type of D flop  is 7475 shown  in figure when CLK  connected is enable signal is high and the flip  flop  is enabled

Thermal –root , A moving coil galvanometer consists of a coil  in a uniform...

A moving coil galvanometer consists of a coil  in a uniform magnetic field B o, suspended fro a fibre of torque constant C, current I produces a deflection O=nAB o i/c where n is

Show the force exerted on each is about one million tons, Q. Consider two 1...

Q. Consider two 1-C charges separated by 1min free space. Show that the force exerted on each is about one million tons.

Signals in noise, Signals in Noise: Let us now consider a weak informat...

Signals in Noise: Let us now consider a weak information signal that is to be amplified by a noisy amplifier. The signal-to-noise ratio (SNR), usually expressed in decibels, be

Transients in r-l-c circuits, Transients in R-L-C circuits: Scenario ...

Transients in R-L-C circuits: Scenario The Laplace transform is a valuable mathematical tool which allows the solution of difficult differential equations to be easily de

transmisson medium, Can I find out the salution of electrods Transmissio...

Can I find out the salution of electrods Transmission medium light sound uncoupling magnet for high dc cycle.

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