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

Classification of feedback control systems by control action, Classificatio...

Classification of Feedback Control Systems by Control Action A more common means of describing industrial and process controllers is by the way in which the error signal E(s) i

Calculate the minimum sampling frequency, Three sine waves along with frequ...

Three sine waves along with frequencies 100Hz, 200Hz and 350Hz and with amplitudes of 1V, 2V and 1.5V correspondingly, are added together to make a single waveform. What is the min

Power system, maxium capacity of genrators in practical use

maxium capacity of genrators in practical use

Transmission of electricity, explain all the components involved in transmi...

explain all the components involved in transmission of electricity

Determine the complete response for capacitance, Consider the circuit of Fi...

Consider the circuit of Figure for t> 0 with zero initial conditions, v Th (t) = 1 V (dc), and R Th = 2 ; L = 1 H. Determine the complete response for vC(t) for capacitance value

Oscillator circuit with the help of block diagram, Q. Explain the condition...

Q. Explain the conditions to be satisfied for sustained oscillations in an oscillator circuit with the help of block diagram. The essential condition for sustained oscillations

What is the signal classification of 8085, What is the signal classificatio...

What is the signal classification of 8085 All the signals of 8085 can be classified into 6 groups Address bus Data bus Control and status signals Power supply and f

Application platform requirement - gis technology, Software/Application Pla...

Software/Application Platform Requirement: GIS solutions would primarily consist of Database and Applications software. The application package should work in LAN/WAN/Interne

Matlab, fast decoupled program

fast decoupled program

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