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

Why we need digital systems, Q. Why we need digital systems? EASIER TO ...

Q. Why we need digital systems? EASIER TO PROCESS: For the reason that digitized information breaks all information into discrete units the information is easier to process and

Diod, explain the application of the Si,zener,and LED diodes

explain the application of the Si,zener,and LED diodes

Module of the rated currents - transformer, Module of the rated currents - ...

Module of the rated currents - transformer: The transformer of the Face(Figure) 2 is a transformer of type Delta-Y (the neutral of Y is grounded). The rated output is of 1500

Resistance of 1200 m of copper cable, Verify the resistance of 1200 m of co...

Verify the resistance of 1200 m of copper cable having a diameter of 12 mm if the resistivity of copper is 1.7 x 10-8 Ωm

Briefly explain the principle and operation of strain gauges, Question: ...

Question: (a) With the help of a clearly labeled diagram explain the functioning of a basic thermocouple. (b) Briefly explain the principle and operation of strain gauges

Dpr preparation, DPR PREPARATION: 1.  Asset Management 2.  System O...

DPR PREPARATION: 1.  Asset Management 2.  System Operations and Despatch 3.  Field Operations 4.  Customer Processes 5.  Corporate Processes The details covered

Determine the overall power factor, A three-phase, wye-connected, cylindric...

A three-phase, wye-connected, cylindrical-rotor, synchronous motor, with negligible armature resistance and a synchronous reactance of 1.27 per phase, is connected in parallel wit

Return instructions , Return Instructions These instruction  are used ...

Return Instructions These instruction  are used to transfer the program sequence from subroutine to the  calling program. Basically  it restores the  previous  contents  of th

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