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

Critical rate of rise of voltage - thyristor , Critical Rate of Rise of Vol...

Critical Rate of Rise of Voltage It  depends on  the junction temperature higher  the junction  temperature lower  the critical rate of  rise of  voltage. It is also known  as

Explain p - n junction, Explain P - N junction. P - N junction: If a ...

Explain P - N junction. P - N junction: If a p- type semiconductor is properly joined to an n-type semiconductor the contact surface that formed is termed as p-n junction. Th

Explain the importance of distributing frames, Q. Explain the Importance of...

Q. Explain the Importance of distributing frames? Basically four levels of cabling are used as displayed in Figure. At the subscriber end, drop wires are taken to a distributio

What is the use of latch signal on the ad0-ad15 bus, What is the  use of l...

What is the  use of latch signal on the AD0-AD15 bus in an 8086 system? Latch signal is used to load the data those are fetched from memory to bus.

Transformers, Three transformers are provided with the following rating val...

Three transformers are provided with the following rating values: 1) 2400/240 V, 55kVA, Req1 = (0.1 + 0.0Y) Ohm and Xeq1 = (0.15 + 0.XX) Ohm. 2) 240/120 V, 25kVA, Req1 = (0.1

Common drain amplifier, Common Drain Amplifier In electronics, a comm...

Common Drain Amplifier In electronics, a common-drain amplifier, as well termed as a source follower, is one type of three basic single-stage field effect transistor (FET) am

Project, Design a DC motor control system to run the 48V DC motor at 40rpm ...

Design a DC motor control system to run the 48V DC motor at 40rpm up to max load of the motor. You are responsible for designing the control of a 24V supply along with the speed s

Ohm, what is ohm?

what is ohm?

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