Vous êtes sur la page 1sur 16

MLR Institute of Technology

Laxma Reddy Avenue, Dundigal, Quthbullapur (M),


Hyderabad 500 043
Phone Nos: 08418 204066 / 204088, Fax : 08418
204088

Micro

project Report

Subject:MPMC

A.Y:2014-15
Faculty Name :D.NARESH KUMAR
Title of the Project: sum of squares
Team Members Details:3

HT.NO.

NAME

Department/Year

12R21A04G9

SK.Adil

III ECE

12R21A04H2

V.Chandrasekhar
reddy
D.Srinadh

III ECE

13R25A0409

III ECE

Objective of Micro Project (i.e. Concept of the


problem ): Use to find sum of squares.
To understand about assembly language programme
Relevance to the subject :Instruction set of 8086
microprocessor
Architecture /Design of the Project
Assuming the segment registers
Initialising data with Num1&Num2 of data byte and
data with Num1&Num2 of data byte and data word
End the data segment

Intialising the code segment by moving data to AX

registers ,AX to DS
Copy offset address of Num1 to SI
Copy NUM2 to CX register
Clear the BX register by copying each
Copy the contents of SI to AL register
Multiply accumulator content with AL
Add BX registers and AX registers
Increment SI

The

loop is repeated depending upon the count of

given inputs using loop instruction


Terminate the program with INT03H
End the code segment
End the start

S.No
1.

Activity

Date

Mathematical model
definition

2/01/2015

2.

Algorithm

9/02/2015

3.

Programme

13/03/2015

4.
5.

Compiling The
Programme With
Inputs (Test Cases)
Final Excution

24/03/2015
26/03/2015

MASM SOFTWARE
Problem Explanation (with Figures ):
Assume cs:code, ds:data
Data segment
Num1 db 04h,03h,02h,01h
Num2 dw 0004h
Data ends

Code segment
Start:mov ax,data

Mov ds,ax

Mov si,offset num1

Mov cx, num2

Mov bx,0000h

Ii:
mov al,[si]

Mul al

Add bx,ax

Inc si

Loop li
Int 03h
Code ends
End start

Application
References : Ray, A. K.; Bhurchand, K.M.

Advanced Microprocessors and Peripherals. India:


Tata McGraw-Hill.
William Blair. "IC Die Photography". Retrieved
2009-12-23.
John Bayko (December 2003).
"Great Microprocessors of the Past and Present".
Retrieved 2009-12-23.

MLR Institute of

Technology
Laxma Reddy Avenue, Dundigal, Quthbullapur (M),

Hyderabad 500 043


Phone Nos: 08418 204066 / 204088, Fax : 08418
204088
Evaluation Criteria of Micro project Report

APPLICATIONS

Simple example
A statistical technique used in regression analysis.

The sum of squares is a mathematical approach to


determining the dispersion of data points. In a
regression analysis, the goal is to determine how
well a data series can be fitted to a function which
might help to explain how the data series was
generated. The sum of squares is used as a
mathematical way to find the function which best
fits (varies least) from the data.

In order to determine the sum of squares the distance


between each data point and the line of best fit is
squared and then all of the squares are summed up.
The line of best fit will minimize this value.

Thank You

Vous aimerez peut-être aussi