You are on page 1of 13

A

Project Report
On
“Find Square Root of 8 Bit Number Using ALP”
In the partial fulfillment of requirement for the award of

DIPLOMA IN COMPUTER ENGINEERING

(Maharashtra State Board of Technical Education, Mumbai)

[2019-2020]

SUBMITTED BY:-
Prasanna Tangade(01) Roshan Kate(11)

Abhishek Deshmukh(19)

Under the Guidance of

Prof. Khushbu Gurbani


Department of Computer Engineering
GOVERNMENT POLYTECHNIC, KHAMGAON
CERTIFICATE
This is to Certified that the Project Work Entitled

“ Find Square Root of 8 Bit Number Using ALP ”


Is a bonafide work carried out in the Third semester in partial fulfillment for the award of

Diploma in Computer Engineering from Government Polytechnic, Khamgaon

During the academic year 2019-2020.

[2019-2020]

SUBMITTED BY:-

Prasanna Tangade(01) Roshan Kate(11)

Abhishek Deshmukh(19)

PROJECT GUIDE

Prof.Khushbu Gurbani

ACKNOWLEDGEMENT
The success and final outcome of this project required a lot of guidance and assistance
from many people and I am extremely privileged to have got this all along the completion of my
project. All that I have done is only due to such supervision and assistance and I would not forget
to thank them.

 I respect and thank DR.S.S Prabhune , for providing me an opportunity to do the project
work in Computer Engineering Department and giving us all support and guidance which made
me complete the project duly. I am extremely thankful to him for providing such a nice support
and guidance, although he had busy schedule managing the corporate affairs.

I owe my deep gratitude to our project guide Prof. Khushbu Gurbani, who took keen
interest on our project work and guided us all along, till the completion of our project work by
providing all the necessary information for developing a good system.

I would not forget to remember HOD of Computer Department Prof. Pavan Holey for
their encouragement and more over for their timely support and guidance till the completion of
our project work.

I heartily thank our internal project guide, Prof .Khushbu Gurbani, Computer
Engineering Department for her guidance and suggestions during this project work.
 

I am thankful to and fortunate enough to get constant encouragement, support and


guidance from all Teaching staffs of Computer Engineering which helped us in successfully
completing our project work. Also, I would like to extend our sincere esteems to all staff in
laboratory for their timely support.

 
ABSTRACT
INDEX

1) INTRODUCTION……………………………………………………….1

2) LITERATURE SURVEY……………………………………………….1

3) IMPLEMENTATION …………………………………...………………1

4) SYMBOLS AND TRUTH TABLES OF GATES……………………….1

5) ADVANTAGES & DISADVANTAGES…………...………….………..1

6) SCREENSHOTS OF CIRCUIT…………………………………………..1

7) RESULTS………………………………...…………………………….....1

8) CONCLUSION………………………………………………………..…..1

9) REFERENCES……………………………………………………………1
INTRODUCTION

Each personal computer has a microprocessor that manages the computer's arithmetical, logical
and control activities. Each family of processors has its own set of instructions for handling
various operations like getting input from keyboard, displaying information on screen and
performing various other jobs. These set of instructions are called 'machine language instruction'.
Processor understands only machine language instructions which are strings of 1s and 0s.
However machine language is too obscure and complex for using in software development. So
the low level assembly language is designed for a specific family of processors that represents
various instructions in symbolic code and a more understandable form.
Assembly language is a low-level programming language for a computer, or other
programmable device specific to a particular computer architecture in contrast to most high-level
programming languages, which are generally portable across multiple systems. Assembly
language is converted into executable machine code by a utility program referred to as an
assembler like NASM, MASM etc.
With the help of Assembly language or with the Assembly language program. We find
Square of the 8 Bit Number in Microprocessor 8086. In which there is a very strong
correspondence between the instructions in the language and the architecture’s machine code
instructions.
IMPLEMENTATION

 Required components with specification

Sr.No Component Specification Quantity

1 Computer System O/S:XP,7, 10.(x64, 1


x32)
RAM 1GB
ROM 512GB
Intel(i3 5thGenration)
2 Assembler - As per requirement

3 Linker - As per requirement

4 Debbuger - As per requirement


ALGORITHM
1. Store 500 to SI and Load data from offset 500 to register CL and set register CH to 00
(for count).
2. Increase the value of SI by 1.
3. Load first number(value) from next offset (i.e 501) to register AL.
4. Multiply the value in register AL by itself.
5. Store the result (value of register AL ) to memory offset SI.
6. Increase the value of SI by 1.
7. Loop above 2 till register CX gets 0.

EXPLANATION
1. MOV SI, 500: set the value of SI to 500
2. MOV CL, [SI]: load data from offset SI to register CL
3. MOV CH, 00: set value of register CH to 00
4. INC SI: increase value of SI by 1.
5. MOV AL, [SI]: load value from offset SI to register AL
6. MUL AL: multiply value of register AL by AL.
7. MOV [SI], AL: store value of register AL at offset SI.
8. INC SI: increase value of SI by 1.
9. LOOP 408: jump to address 408 if CX not 0 and CX=CX-1.
10. HLT: stop
EXAMPLE
ADVANTAGES

 Easy to make insertions and deletions.


 Requires fewer instructions to accomplish the same result.
 Execuation speed is faster.
 Not require to keep track of memory locations.

DISADVANTAGES

 It is complex and difficult to understand.


 It takes lot of time and effort to write a code for the same.
 It has a lack of portability of program between different computer architectures.
 Syntax are difficult to remember.
RESULT
With the help of Instructions the outputs of Assembly language program is only
determined by the number which is given as output to find square of number. The assembly
language program based on the instruction set defined for our specific type. The instructions
deals with Input and Output.
CONCLUSION
By using Instructions to find square of number in Assembler we get correct output of the
number which is entered by user, to find square of number. To conclude, we have demonstrated
the perfect logic to get require output. Appropriate data about the specific of the experiment has
been gathered, presented, and analyzed and thus we conclude our project here.
REFERENCES

https://www.geeksforgeeks.org/8086-program-to-determine-squares-of-numbers-in-an-array-
of-n-numbers/

https://tutorialspoint.dev/computer-science/microprocessor/8086-program-find-square-root-
number

https://www.includehelp.com/embedded-system/square-root-of-a-number.aspx

You might also like