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 disadvantages of using robots, What are the Disadvantages of u...

What are the Disadvantages of using robots -  They can find it difficult to deal with 'unusual' circumstances for example a door is missing from a car waiting on the paint spra

Explain the construction of jfet, Q. Explain the construction of JFET? ...

Q. Explain the construction of JFET? The basic construction of the p-channel JFET is shown in figure. The major part of the structure is the p-type material that forms the chan

Realization of digital filter design, why we are going to realization of di...

why we are going to realization of digital filter after finding the H(z).

DLD, Draw a logic diagram to implement F=ABCDE using only 3 input AND gates...

Draw a logic diagram to implement F=ABCDE using only 3 input AND gates

Stc set carry instruction, STC Set Carry Instruction This instruction ...

STC Set Carry Instruction This instruction  sets   the carry  flag  to 1. The  instruction format is STC Flags except carry no other  flags are affected

Digital ecectronics, DISIGN A FENITE STATE MACHINE TO DETECT THE SEQUENCE 1...

DISIGN A FENITE STATE MACHINE TO DETECT THE SEQUENCE 10110

Explain standard set of procedure used in completing a call, Q. Explain Sta...

Q. Explain Standard set of procedure used in Completing a call? Completing a local telephone call between two subscribers linked to the same telephone switch is accomplished th

FET operation, ON output plot of a JFET n-channel transistor if ID is close...

ON output plot of a JFET n-channel transistor if ID is close to IDSS does the value of VGS close to VP?

What is the advantage of using jfet as an amplifier, Q. What is the advanta...

Q. What is the advantage of using JFET as an amplifier? As an amplifier of small time-varying signals, the JFET has a number of valuable assets. First of all it has a very high

Explain jmp instruction and call instruction., Explain the difference betwe...

Explain the difference between a JMP instruction and CALL instruction. A JMP instruction permanently alters the program counter. A CALL instruction leaves information on the st

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