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

Can you explain about trapeziodal clippers, Q. Can you explain about Trapez...

Q. Can you explain about Trapeziodal Clippers? During The Positive half cycle, the diode D1 will be open circuited and the input appears as the output until, the applied bias v

Explain the significance of the coupling capacitor, Q. Explain the signific...

Q. Explain the significance of the Coupling capacitor and the RE - CE circuit. The function of the coupling capacitor is to isolate the amplifier input circuit from the source.

Overcoming power shortages, Overcoming power shortages: NEP aims at me...

Overcoming power shortages: NEP aims at meeting both energy and peak demand fully through 2012 along within creating 5 percent spinning reserves at national level. The policy

#title. Armature winding, Why is an armature winding in d.c machine called ...

Why is an armature winding in d.c machine called closed winding.

Matlab codes for transportation problem, i need matlab codes for the minimu...

i need matlab codes for the minimum cell cost method to start the initial feasible solution and the stepping stone method to find the optimum value

Simplest equivalent circuit topology using lumped elements, Simplest equiva...

Simplest equivalent circuit topology using lumped elements: For each of the Smith chart traces below, sketch (at the right of each chart) the simplest equivalent circuit topol

Lc filter, LC Filter To the load resistance R L the ripple factor i...

LC Filter To the load resistance R L the ripple factor is directly proportional in the inductor filter and inversely proportional to R L in the capacitor filter. Hence i

Draw the schematic diagram of the arrangement, Q. A two-winding, single-pha...

Q. A two-winding, single-phase transformer rated 3 kVA, 220:110 V, 60 Hz is connected as an autotransformer to transform a line input voltage of 330 V to a line output voltage of 1

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