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

Use of monitoring and control in nuclear and chemical plants, Use of Monito...

Use of Monitoring and control in nuclear and chemical plants In nuclear and chemical plants, there is generally a combination of control and monitoring taking place. Informatio

Microprocessors, Memory location 2000H has the word 5000H stored in it. Wha...

Memory location 2000H has the word 5000H stored in it. What does each location contain after DEC WORD PTR [2000H].

Explain the purpose of the global descriptor table register, Explain the pu...

Explain the purpose of the global descriptor table register. The GDTR stand for global descriptor table register and IDTR stand for interrupt descriptor table register conta

Society in engineering, Cite a specific example in which the engineer must ...

Cite a specific example in which the engineer must provide maximum efficiency for a given cost

Explain piezoelectricity, Explain piezoelectricity. Piezoelectricity: ...

Explain piezoelectricity. Piezoelectricity: It gives us a means of converting electrical energy to mechanical energy and vice versa. While an electric field is applied to

Followings are the disadvantages of plc - stepper motor , Followings are th...

Followings are the Disadvantages of PLC a.Too much  work  required in  connecting wires. b.Difficulty with changes or replacements. c.Difficulty in finding  errors  requi

Pdc, disadvantages of shunt&series clippers

disadvantages of shunt&series clippers

Give a few applications of superconductors, Give a few applications of supe...

Give a few applications of superconductors. Also give three applications of superconductors. Application of superconductors in Electrical and Electronic Engineering (i) 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