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 cross-sectional conducting area, Q MCM is the abbreviation fo...

Q MCM is the abbreviation for 1 kcmil. problem for a de?nition of cmil.) Data for commercial-base aluminum electrical conductors list a 60-Hz resistance of 0.0880 /km at 75°C for

Induction heating levitation, Using a levitation coil, you levitate a condu...

Using a levitation coil, you levitate a conductive object in the magnetic field and heat within that field. I have 2 sample report and I would like you to write some thing similar

How a nand gate decoder is used for 2716 eprom memory, With neat diagram in...

With neat diagram indicate how a simple NAND gate decoder is used to select a 2716 EPROM memory component for memory locations FF800H-FFFFFH. Simple NAND gate Decoder: As the 2

Electronic monitor and alarm system for an oil separator, This assignment i...

This assignment is to develop a User Requirements Specification for an electronic monitor and alarm system for an Oil Separator in Surface Water Drainage Systems. These separato

Adi add immediate instruction , ADI Add Immediate  Instruction The  b...

ADI Add Immediate  Instruction The  bit  data specified in the instruction  is  directly  added with  contents of accumulator and result  of operation is stored  in the  accum

Evaluate the condition on the amplifier noise temperature, Alow-noise trans...

Alow-noise transducer is connected to an instrumentation system by a cable that generates thermal noise at room temperature. The information-bearing signal has a bandwidth of 6 kHz

Use delta-wye transformation for network reduction, 1555_Use delta-wye tran...

1555_Use delta-wye transformation for network reduction.png what is the solution to this particular problem?

What is message demodulation, Q. What is Message Demodulation? The majo...

Q. What is Message Demodulation? The major advantage of the conventional (standard) DSB AMsignal transmission is the ease with which the signal can be demodulated. Themessage s

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