ASM program to calculate arithmetic mean of ‘N’ numbers

Aim: – To write an assembly language program to calculate arithmetic mean of ‘N’ numbers.

1
2
3
4
5
6
7
8
9
10
11
12
13
MOV AX, DATA
MOV DS, AX
XOR AL, AL
LEA SI, NUM
MOV CX, 0005
MOV AH, 00
NEXT: 	ADD AL, [SI]
INC SI
LOOP NEXT
MOV CL, 05
DIV CL
MOV SUM, AL
END

Result: Arithmetic mean of given ‘n’ numbers is obtained.

Chitra
Chitra

One thought on “ASM program to calculate arithmetic mean of ‘N’ numbers

  1. Hey Webmaster do you want unlimited content
    for your wp blog? 100% unique and human readable. Serarch in google:
    Ryordel’s rewriter

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest updates on your inbox

Be the first to receive the latest updates from Codesdoc by signing up to our email subscription.

    StudentProjects.in