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

What are the main embedded system components, What are the main embedded sy...

What are the main embedded system components? Main Embedded System Components a. Embeds hardware to provide computer as functionalities b. Embeds major application softw

7 segment design, how to design 7 segment design using DSCH2 ?

how to design 7 segment design using DSCH2 ?

Factors involved in the voltage build up of shunt generator, Q.   List and ...

Q.   List and explain the factors involved in the voltage build up of shunt generator. Ans. following factors are involved in voltage build up of shunt generation

Calculate the voltage across the capacitor, In the circuit above, V1 is a d...

In the circuit above, V1 is a dc supply which outputs 12V, R1 has a value of 100 Ω and C1 is 100µF. The switch has been left in the position shown for a long time such that there i

Help, How do you be in Harward

How do you be in Harward

Equivalent circuits, Modern complex systems are normally constructed by int...

Modern complex systems are normally constructed by interconnecting sub-units. Therefore the systems engineer is often not too concerned about the details of what is inside these

For the nor and inverter realizations, Q. For the NOR and inverter realizat...

Q. For the NOR and inverter realizations shown in Figure, find the truth table, the type of gate realized, and the expression for the logic output, in each case.

Resistors, Difference between linear and non-linear resistors

Difference between linear and non-linear resistors

Draw the equivalent magnetic circuit diagram, 1) Consider the magnetic circ...

1) Consider the magnetic circuit shown in the figure. Steady currents flow in the windings of N 1 and N 2 turns on the outside legs of the ferromagnetic core. The core has a

Calculate the magnetic flux in the core, Q. A toroid with a circular cross ...

Q. A toroid with a circular cross section is shown in Figure. It is made from cast steel with a relative permeability of 2500. The magnetic flux density in the core is 1.25 Tmeasur

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