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 do you mean by interference, Q. What do you mean by interference? ...

Q. What do you mean by interference? An information-bearing signal often becomes contaminated by externally generated interference and noise and/or by internally generated nois

Segment is used to store interrupt, Which Segment is used to store interrup...

Which Segment is used to store interrupt and subroutine return address registers? Ans) Stack Segment in segment register is used to kept interrupt and subroutine return address

Explain imul instructions in 8086 family, Explain IMUL instructions in 80...

Explain IMUL instructions in 8086 family with example and their effect on flag. IMUL: It is an instruction for multiplication of two signed numbers. This result is a signed

Find the source voltage, Q. A semiconductor diode with IS = 10µA and a 1-k...

Q. A semiconductor diode with IS = 10µA and a 1-k resistor in series is forward-biased with a voltage source to yield a current of 30mA. Find the source voltage if the diode I-V e

Write the kvl equation for the circuit, Q. Consider a reverse-biased diode ...

Q. Consider a reverse-biased diode with a source voltage VB in series with a load resistance RL. Write the KVL equation for the circuit.

Block diagram of digital control system, The block diagram of Figure is a f...

The block diagram of Figure is a functional representation of a type of digital control system, in which G and H serve the same function as in any feedback system. Note that the er

Explain digital signal formatting, Q. Explain Digital Signal Formatting? ...

Q. Explain Digital Signal Formatting? After quantization and coding the samples of the message, a suitable waveform has to be chosen to represent the bits. This waveformcan the

How an electroscope charged without contacting charged body, An electroscop...

An electroscope charged WITHOUT contacting a charged body is charged by: a) Induction b) Conduction c) Convection d) Insulation Ans: An electroscope char

Current ratio, Current ratio The ratio is mainly used to give an idea ...

Current ratio The ratio is mainly used to give an idea of the company's ability to pay back its short-term liabilities with its short-term assets. The higher the current ratio

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