MIC Micro Project (10,31,33,45)
MIC Micro Project (10,31,33,45)
REPORT
MAHARASHTRASTATEBOARDOFTECHNICALEDUCATION
GURUGOBINDSINGHPOLYTECHNIC,NASHIK
MICRO PROJECT
Academicyear:2020-21
TITLEOFPROJECT
Factorial Of a Number
Program:Computer Engineering
Programcode:CO
Course:Microprocessor
Coursecode: 22415
MAHARASHTRA STATEBOARD OF
TECHNICALEDUCATION
Certificate
GURUGOBINDSINGHPOLYTECHNIC,NASHIK
MICRO PROJECT
Academicyear:2020-21
TITLEOFPROJECT
Factorial Of a Number
Program:ComputerEngineering
Programcode:CO
Course:Microprocessor
Coursecode:22415
NameofGuide:Mr. C. R. Ghuge
GroupDetails:
Sr.N Nameofgroup members RollNo. EnrollmentNo. SeatNo.
o
1. Pranali Nere 10 1903690086
2. Siddhi Nikam 31 1903690107
3. Sakshi Baviskar 33 1903690109
4. Samruddhi Bhamre 45 1903690121
ANNEXUREII
EvaluationSheetfortheMicroProject
CosaddressedbyMicroProject:
a. Analyzethefunctionalblockdiagramof8086.
b. WriteanALPforgivenproblem.
c. Useinstructionsfordifferentaddressingmodes.
d. DevelopanALPusingassembler.
e. DevelopanALPusingprocedure,macros&modularprogrammingapproach.
Majorlearningoutcomesachieved bystudents bydoingtheproject
(a) Practicaloutcome:
1. IdentifyvariouspinsofgivenMicroprocessor.
2. Useassemblylanguageprogrammingtools&functions.
3. Useinstructionsfordifferentaddressingmodesinaprogram.
4. WriteanALPtoadd,subtract, multiply,dividetwoBCDnumbers.
(b) Unitoutcomes inCognitivedomain:
1) Describethefunctions ofthegivenpins.
2) UsetheALPtoolsto developacodeofthegivenapplication.
3) Describethegivenaddressingmodelwithexamples.
4) Developprogramforthegivenproblem.
5) DevelopanALPusingprocedureforthegivenproblem.
(c) OutcomesinAffectivedomain:
1) Followsafetypractices.
2) Practicegoodhousekeeping.
3) Demonstrateworkingasaleader/ateammember.
4) Maintaintoolsandequipment.
5) Followethicalpractices.
Comments/suggestionsaboutteamwork/leadership/inter-personalcommunication (ifany)
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
-
Pranali Nere
10
Siddhi Nikam
31
Sakshi Baviskar
33
Samruddhi Bhamre
45
Mr. C. R. Ghuge
(Name&SignatureofFaculty)
Write an assembly language program for
calculating the factorial of a number using 8086
microprocessor
Important –
If the Given Number is a 16-bit number, the AX register is automatically used as the
second parameter and the product is stored in the DX:AX register pair. This means that the
DX register holds the high part and the AX register holds the low part of a 32-bit number .
In 8086 microprocessor, user have direct instruction (MUL) to multiply two numbers, so
we don’t have to add Multiplicand by Multiplier times like in 8085
Advantage of 8086 over 8085 (In case of Multiply):
Don’t have to write a bulky code as 8086 has a small code
Easy to remember
Already have multiplication Instruction
Algorithm –
1. Input the Number whose factorial is to be find and Store that Number in CX
Register (Condition for LOOP Instruction)
2. Insert 0001 in AX(Condition for MUL Instruction) and 0000 in DX
3. Multiply CX with AX until CX become Zero(0) using LOOP Instruction
4. Copy the content of AX to memory location 0600
5. Copy the content of DX to memory location 0601
6. Stop Execution
Program –