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

Determine self inductance of coil, Determine self inductance of coil: ...

Determine self inductance of coil: A flux of 0.5 m Wb is generated by coil A of 600 turns wound on a ring with a current of 2 A in it. Determine (a) self inductance of coil A,

Dc machine dynamic performance, Calculate the following for a 2 hp and a 20...

Calculate the following for a 2 hp and a 20 hp dc machine, each rated for 500 rpm. Use data from the Study Plan 1 data sheet, including "hot" armature resistance value for all cal

Requirement of a hybrid in telephone networks, Q. What is the requirement o...

Q. What is the requirement of a hybrid in telephone networks? How does it work? Ans: Digital exchanges require receive and transmit signals on separate two-wire circuits. Th

Lead acid battery, Describe the construction of lead acid battery

Describe the construction of lead acid battery

Dynamics of electrical machines, 1. Modeling of Armature and Field Controll...

1. Modeling of Armature and Field Controlled DC motors: Steady state and dynamic models; development of block diagrams;  assumptions used; complexity involved in realistic models;

Explain the different instruction formats, Explain the different instructio...

Explain the different instruction formats with examples The instruction set is grouped into the following formats One byte instruction MOV C,A Two byte instruction

Find the total input power, Q. A 230-Vdc shuntmotor delivers 30 hp at the s...

Q. A 230-Vdc shuntmotor delivers 30 hp at the shaft at 1120 r/min. If the motor has an efficiency of 87% at this load, find: (a) The total input power. (b) The line current.

Octal number systems, Octal Number Systems Now the  question may  arise...

Octal Number Systems Now the  question may  arise in one mind  that why  to learn  octal  number  system when  neither  human  nor the  digital  systems  uses. It  hence it is

Evaluate supply and the supply power factor, Q. Two balanced, three-phase, ...

Q. Two balanced, three-phase, wye-connected loads are in parallel across a balanced three-phase supply. Load 1 draws a current of 20 A at 0.8 power factor leading, and load 2 draws

Sketch the spectrum of a standard am signal, If the message has a spectrum ...

If the message has a spectrum where K and Wf are positive constants, sketch the spectrum of a standard AM signal that uses the message. Comment on the physical signi?cance

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