Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 17

A

MICRO PROJECT REPORT ON


“PREPARE A REPORT ON ALP FOR FIND FACTORIAL
OF A NUMBER”

FOR THE DIPLOMA IN COMPUTER ENGINEERING

SUBMITTED BY

AADARSH SHANKAR KALE


ADITYA DATTA JADHAV

UNDER THE GUIDANCE


OF Ms. M.G.JADHAV
DEPARTMENT OF COMPUTER ENGINEERING
CSMSS COLLEGE OF POLYTECHNIC,
AURANGABAD MAHARASHTRA, INDIA

AND
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI

ACADEMIC YEAR 2023-24


CERTIFICATE
This is to certify that Following Students of Fourth Semester of Diploma in
Computer Engineering of Institute CSMSS College of Polytechnic(code:1152)have
completed the Micro Project satisfactorily in subject Microprocessor (22415) for the
academic year 2023-2024 as prescribed in the curriculum.

Place:Chh.Sambhajinagar
Date:

Sr.no Name of the students Enrollment no.


2211520072
1 AADARSH SHANKAR KALE
2211520063
2 ADITYA DATTA JADHAV

PROJECT GUIDE HEAD OF DEPARTMENT

PRINCIPAL
ACKNOWLEDGEMENT

We would like to express our thanks to the people who have helped us most
throughout our project. We would like to express our sincere thanks to the principal of
CSMSS College of Polytechnic Dr. Ganesh B. Dongre for being always with us as a
motivator. We are thankful to the H.O.D of Computer Engineering Department
Mrs.R.S.Pophale for her kind support.We are grateful to our Project Guide
Ms.M.G.Jadhav for nonstop support and continuous motivation for the project. Her
help made us possible to complete our project with all accurate information. A special
thanks of our goes to our friends who helped us in completing the project, where they
all exchanged their own interesting ideas. We wish to thanks our parents for their
personal support or attention who inspired us to go our own way. Finally, we would
like to thank God whomade all things possible for us till the end.

Sr. Name of Students Sign


No.
AADARSH SAHNKAR KALE
1

ADITYA DATTA JADHAV


2
••••••••••••••••••••••••••••••••• INDEX ••••••••••••••••••••••••••••••••••••

Sr. No Content Page No.

1 Micro-project Proposal 1-2

2 Rationale 3

3 Aims/Benefits of the micro-project 4

4 Course Outcome Achieved 4

5 Literature Review 5

6 Actual Methodology Followed 10

7 Skill Developed /Learning Outcome Of 12


Micro- Project

8 Application Of Micro-project 13
1. MICRO – PROJECTPROPOSAL

TITLE: Prepare A Report On ALP For Find Factorial Of A Number

1.0 Aims /Benefits Of The Micro Project –

To implement an ALP for find Factorial of a Number.

2.0 COURSE OUTCOMES ADDRESSED -

1. Write assembly language program for the given problem.

2. Use instructions for different addressing modes.

3.0 PROPOSED METHODOLOGY:


01. Basic information about instructions and directives.

02. Basic information about arithmetic instruction.

03. Basic information about addressing modes.

4.0 ACTION PLANS:

Sr. Details of Activities Planned Planned Name of


No. Start Date Finish Responsible
Date Team
Members
1 Decide subject for micro project. 28/02/2024 01/03/2024 All
2 Preparation and submission All
of Abstract.
3 Collection of data. 01/03/2024 02/03/2024 All
4 Discussion and outline of 03/03/2024 05/03/2024 All
Content.
5 Formulation of content. 05/03/2024 25/03/2024 All
6 Editing of Content. 13/04/2024 15/04/2024 All
7 Final submission of 27/04/2024 30/04/2024
Micro Project.

11
5.0 RESOURCES REQUIRED:

Sr. Name of Specifications Quantity Remarks


No Resource /
Material
1 Computer RAM minimum 1
2GB onwards (i3-i5
preferable)
2 Operating System Windows 7 / XP / LINUX 1
3 Software Tasm 1.4

❖ NAMES OF TEAM MEMBER WITH ROLL NO:

Sr.no. Name of Students Roll no

1 AADARSH SHANKAR KALE 31

2 ADITYA DATTA JADHAV 26

Approved by,

Ms.M.G.Jadhav

2
2. RATIONALE

Microprocessor is the main component of computer where 8086 is the base of


all upward developed processors till current processors. This course will cover the basics
of 8086 and its architecture along with instruction set, assembly language
programming with effective use of procedure and macros. This course also covers the
architectural issues such as instruction set program and data types. On top that, the
students are also introduced to the increasingly important area of parallel organization.
This subject serves as a basic to develop hardware related projects. This course will
enable the students to inculcate assembly language programming concepts and
methodology to solve problems.

3
3. AIMS / BENEFITS OF THE MICROPROJECT

 Micro - Project aims at

 To get the knowledge of Assembly language programming

 To get information about how to use instructions and directives in the program.

 To develop an ALP using arithmetic instruction.

 Benefits of project:

 We learn to use instructions and directives in an ALP.

 We learn to find factorial of a number.

 We learn about the addressing modes.

4
4. LITERATURE REVIEW

 Introduction to how find factorial of a number:

Factorial of a whole number 'n' is defined as the product of that number with every whole number
till 1. For example, the factorial of 4 is 4×3×2×1, which is equal to 24. It is represented using the
symbol '!' So, 24 is the value of 4! .

❖ Factors that are used:


 Directives.
 Instructions.
 Assembly language program development tools.

1) Directives:
a. DB (Define Byte):
The directive DB is used to define byte type variable. It can be used to
define single or multiple byte variables.
General form:-
Name of_ variable DB Initialization value
Ex:- NUM1 DB 10: Allot one memory
location.
NAME DB ‘VIJAY’: Allot five memory locations.
b. ASSUME:
The directive ASSUME informs the assembler the name of logical segment
that should be used for a specified segment.
General form:-
ASSUME Seg _reg : Seg _name,…..Seg reg : Seg _name.
Where ASSUME is a assembler directive and Seg reg is any one of the segment register
i.e., DS, ES, SS, Sc _name is the name of the user defined segment and must be any
valid symbol except reserve keywords.
Ex: - ASSUME DS: My_ data, CS: My _code.

5
c. .CODE (Simplified Code Segment)
This simplified segment directive defines the code segment. All executable
code must be place in this segment.
General form: -
.code

d. .DATA (Simplified Data Segment)


This simplified segment directive defines the data segment for initialized data.
All data definition and declaration must be placed in this segment.
General form: -
.data

e. .MODEL
This simplified segment directive creates default
segments. General form: -
.model memory models.
Memory models are:
1) TINY: Used for .com program.
2) SMALL: All data in one segment and all code in one segment.
3) MEDIUM: Data in more than one segment but code in one segment.
4) LARGE: Both data and code in more than one segment.

f. END (End of the program)


The simplified segment directive defines the code segment. All executable code
mustbe place in this segment.
General form: - End.

6
2) Instructions:
a. Mov Destination , Source
This data transfer instruction transfer data from source to destination. Source may be
register, memory location or immediate data. Destination may be register or memory
location. It can’t be immediate data.
operation: - Destination, Source
Ex: -
MOV AL, [SI]

b. MUL Source
This instruction multiplies and unsigned bytes from the source with an and unsigned
byte in the AL register or an unsigned word from the source with an and unsigned
word in the AX register.
When a byte is multiplied with the byte in Al then result is stored in AX register
because the result of multiplication of two 8 bit number can be as long as 16 bit.
When a word is multiplied with a word in AX then MSW the result in stored in DX
and MSW of result in AX register because result of multiplication of two 16 bit
number that is word can be as large as 32 bit .
Operation:

If source is byte:
a.AX AL unsigned
*8bitsource If source is word:
a. DX:AX AX unsigned * 16 bit Source
EX: -
MUL CX
MUL BL

c. DEC − Used to decrement the provided byte/word by 1

7
d. Loop Instruction
The LOOP instruction executes the group of instructions a number of times and it uses
relative addressing mode. The number of iterations will depend on the condition to be satisfied.
The CX register will perform the LOOP operation on the instructions to be iterated.

For every execution of LOOP instruction, the CX is automatically decremented by one


without affecting flags and performs a short jump to the target address. This loop will continue
until the CX becomes zero. When CX = 0, the execution of the loop will stop and the instructions
after the LOOP will start execution.

e. HLT Instruction :

The HLT instruction will cause the 8086 to stop fetching and executing instructions. The 8086
will enter a halt state. The only ways to get the processor out of the halt state are with an interrupt
signal on the INTR pin, an interrupt signal on the NMI pin, or a reset signal on the RESET input.

8
 Assembly language program development tools:
a. Editor:
Editor is a program which helps to construct assembly language program in a right format
so that assembler will translate it correctly to a machine language. This form of program
is called as a source program.
Ex: - EDIT, WORDSTAR, NORTAN EDITOR, ASSEMBLER.

b. Assembler:
Assembler is a program that translates assembly language program to the correct binary code
i.e. machine code for each instruction and generate the file called as object file with
extension .obj.
Ex: - Turbo assembler (TASM), Microsoft assembler (MASM).

c. Linker:
Linker is a program which combines frequested, more than on separately
assembled module into one executable program and also generate .exe
module. Ex: - TLINK (Turbo Linker), MLINK (Microsoft Linker).

d. Debugger:
Debugger is a program that allows the execution of a program in a single step mode
under the control of user. The process of locating and correcting error using debugger is
known as Debugging.
Ex: - DOS DEBUG COMMAND, TD (Turbo Debugger), MV (Microsoft Debugger).

9
5.PROCEDUREFOLLOWED
1.

1
6. OUTPUT OF MICROPROJECT

1
7. SKILL DEVELOPED / LEARNING OUTCOMES OF MICRO PROJECT

1. Communication

2. Leadership

3. Team management

4. Negotiation

5. Personal organization

6. Risk management

7. Critical thinking

8. Task management

9. Working with team

10. Logic development

11. Error handling

1
8. APPLICATIONS OF MICRO – PROJECT

1. It is used to develop an ALP for finding factorial.

2. It is used to develop different applications using ALP.

3. Studied different addressing modes.

4. Studied different instructions.

5. Used arithmetic in this program.

6. Used various directives and instructions.

You might also like