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

Voice control mobile base, i need help for my final year project, and i wil...

i need help for my final year project, and i will really appreciate if you can assist me as soon as possible

Ac circuits, AC Circuit: This topic explain the basic concepts of sing...

AC Circuit: This topic explain the basic concepts of single and three-phase ac system. Unit provides the thorough analysis and derivations as required by topics. Here we find

Delay time - power semiconductor devices , Delay time ( t d ) Initiall...

Delay time ( t d ) Initially a thyristor  remains  in forward  blocking  stat when  anode to cathode forward  voltage  is applied  and gate  to cathode circuit is opened. As t

Cpopy 16 bit data register pair , cpopy 16 bit data  Register pair E...

cpopy 16 bit data  Register pair Example  : Copy  16 bit  data 3 E 21H  in register pair BC Solution   :The  statement  is LXI B 3E 21H 16  bit data  3E 21H in reg

Magnets, B-H curve of SM2CO17

B-H curve of SM2CO17

Define and explain numerical aperture, Define and explain Numerical apertur...

Define and explain Numerical aperture? Figure shown below shows an incident ray to the fibre, The light bends at two interfaces, one at the air- core interface and the

Magnetic contactor, how to wire a three phase contactor to become a single ...

how to wire a three phase contactor to become a single phase contactor?

Explain the different coupling schemes used in amplifiers, Q. Explain the d...

Q. Explain the different coupling schemes used in amplifiers? When amplifiers are cascaded, it is necessary to use a coupling network between the output of one amplifier and th

Butterworth filter, what is experimental setup for Butterworth filter?

what is experimental setup for Butterworth filter?

Energy conservation building codes, Energy Conservation Building Codes ...

Energy Conservation Building Codes It encompass the norms and standards of energy consumption expressed in terms of per square meter of the area wherein energy is used. The

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