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 the system active power, A three-phase, 4160 V, 60 Hz, 3000 kVA g...

A three-phase, 4160 V, 60 Hz, 3000 kVA generator supplies the following three phase loads:  A 00 kVA at .7 pf lagging, D 00 kVA at .9 pf lagging, and C 50 kVA at unity pf.

Show a schematic diagram of the seven- segment decoder, Q. Digital watches ...

Q. Digital watches display time by turning on a certain combination of the seven-segment display device. (a) Show a typical seven-segment display. (b) Develop a truth table f

Explain sahf instructions in 8086 family, Explain SAHF instructions in 80...

Explain SAHF instructions in 8086 family with example and their effect on flag. SAHF: Store AH register in flag register, this is an instruction utilized to store the data i

Cmp compare instruction , CMP Compare Instruction This instruction is ...

CMP Compare Instruction This instruction is used to compare the contents  of register  or memory  with accumulator the contents of the operand remain  unaffected. There are tw

Compute the motor speed, Consider the 220-V, 1800-r/min dc motor, controlle...

Consider the 220-V, 1800-r/min dc motor, controlled by a three-phase fully controlled rectifier from a 60-Hz ac source. The armature-circuit resistance and inductance are 1.5  and

Speed control of stepper motor by using microcontroller 89c5, Hello sir, m ...

Hello sir, m engineering final year student, we made a project as I mentioned above, I wanna add some extra feature on it, meant to modified it...want to add up some extra feature

Explain p - type semiconductor, Explain p - Type semiconductor. p - ...

Explain p - Type semiconductor. p - Type semiconductor:- (i) If small amount of trivalent impurity is added with to a pure semiconductor giving a large no. of holes in t

Speed control of dc series motor - motor control , Speed Control of DC Seri...

Speed Control of DC Series Motor A half  wave  circuit  for the  speed  control of DC  series motor is  shown in figure and corresponding wave from  is shown  in figure  consis

Explain the terms dielectric constant and dielectric loss, Explain the term...

Explain the terms dielectric constant and dielectric loss. Dielectric Constant or Permittivity: all insulating materials possess an electrical capacitance. The capacitance of

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