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 is the procedure of binary division, Q. What is the procedure of Binar...

Q. What is the procedure of Binary Division? The Binary division is the repeated process of subtraction, just as in decimal division. Signed Numbers Representation If w

Basic operations of 8085 microprocessor , Basic Operations of 8085 Micropro...

Basic Operations of 8085 Microprocessor The 8085 microprocessor  performs followings  five  basic  operations . 1. Opcode Fetch :  Reading and decoding  operation code  of

In-depth technical competence, Professional engineers engage with a wide ra...

Professional engineers engage with a wide range of technically advanced and complex problem. So technical know-how is necessary to solve problems, advance existing technologies and

Show frequency response using pspice and probe, Q. Show Frequency response ...

Q. Show Frequency response using pspice and probe? PSpice is capable of performing transient circuit analysis, for which the request is given by the following statement: • T

Semiconductor devices, Semiconductor Devices: We have studied semicond...

Semiconductor Devices: We have studied semiconductor devices. Firstly, we understand what semiconductors in terms of energy band diagrams are. Then we understand what is dopin

Sketch the waveforms of sinusoidal voltage source, Q. Consider the op-amp c...

Q. Consider the op-amp circuit of Figure. Sketch the waveforms of v S and v o , if v S is a sinusoidal voltage source with a peak value of 2.

Digital electronic, What are the advantages of wired-AND connection of digi...

What are the advantages of wired-AND connection of digital IC

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