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

Digital electronics, Design a 4-bit synchronous counter that has the follow...

Design a 4-bit synchronous counter that has the following sequence: 0 ?4? 9?12 ? 14 ?15 and repeat using: i) JK FF ii)D FF

Humming , I am getting humming noice in speaker when I connect to laptop on...

I am getting humming noice in speaker when I connect to laptop on ac when I put it on dc (battery) it''s dispear . Please help

How DRAM is different from SRAM, How DRAM's are different from SRAM's?  Why...

How DRAM's are different from SRAM's?  Why DRAMs are said to employ address multiplexing? Dynamic RAM (DRAM) is fundamentally similar as SRAM, except that this retains data for

Illustrate the basic concept of machine cell design, a) Write short notes o...

a) Write short notes on part feeding devices and transfer mechanism. b) Explain with example automation for machining operation with relevant diagrams. c) discuss different p

Explain register direct and indirect data addressing mode, Explain Register...

Explain Register Direct and Indirect data addressing mode (with examples) available in microprocessors. Register Direct Modes and Register Indirect Modes: Does not giv

Permanent magnets, Materials with 'hard' magnetic B/H characteristics often...

Materials with 'hard' magnetic B/H characteristics often show a strong residual magnetism. This makes them suitable for making permanent magnets. If the ring material were magnetis

Explain djnz instructions of intel 8051 microcontroller, Explain DJNZ instr...

Explain DJNZ instructions of intel 8051 microcontroller? a) DJNZ Rn, rel Decrement the content of the register Rn and jump if not zero. b) DJNZ direct, rel Decreme

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

Dwsdasdad, adadaaaaaaaaaaaaaaaaaaaaaaascaacacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

adadaaaaaaaaaaaaaaaaaaaaaaascaacacaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaAsk question #Minimum 100 words accepteda

Design a battery charger, The problem with a battery charger (say, for port...

The problem with a battery charger (say, for portable devices) is that it continues to draw power even after the battery is fully charged thereby wasting electricity. In addition,

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