0 ratings0% found this document useful (0 votes) 146 views14 pagesMic Microproject
Microprocessor microproject
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
A
Micro project
On
“Write an ALP to count the numbers of positive and negative numbers.
Write an ALP to count the numbers of even and odd numbers. ”
Submitted By
Pushkar Adkar (05)
Pradnya Bhakare (44)
Sanskar Sagar (48)
Guided By
Mrs. A. S. Patil
Diploma Course in Computer Technology
(As per directives of I Scheme, MSBTE)
niCAL EDUCATION,
go So,
ot %
Sinhgad Institutes
Sinhgad Institutes
Sinhgad Technical Education Society’s
SOU.VENUTAI CHAVAN POLYTECHNIC
PUNE - 411041
ACADEMIC YEAR 2022-2023Maharashtra State Board of Technical
Education
Certificate
This is to certify that Ms. Pradnya Bhakare with Roll No. 44 of Semester IV of Diploma
in Computer Technology of Institute Sou. Venutai Chavan Polytechnic (Code: 0040)
has successfully completed the Micro-Project in Microprocessor (22415) for the
academic year 2022-2023 as prescribed in the curriculum.
Program Code: CM
Place: SVCP, Pune
Date: \04\2023
Mrs. A. S. Patil
Course Teacher
Course Code: CM/4/T
Enrolment No: 2100400132
Exam Seat No: 169326
Mrs A. V. Kurkute Dr.(Mrs.)M. S. Jadhav
Head of Department Principalhe, &
avs
Maharashtra State Board of Technical
Education
Certificate
This is to certify that Mr. Pushkar Adkar with Roll No. 05 of Semester IV of Diploma in
Computer Technology of Institute Sou. Venutai Chavan Polytechnic (Code:0040) has
successfully completed the Micro-Project in Microprocessor (22415) for the academic
year 2022-2023 as prescribed in the curriculum.
Program Code: CM Course Code: CM/4/I
Place: SVCP, Pune Enrolment No: 2100400057
Date: \04\2023 Exam Seat No: 169254
Mrs. A. S. Patil Mrs A. V. Kurkute Dr.(Mrs.)M. S. Jadhav
Course Teacher Head of Department PrincipalMaharashtra State Board of Technical
Education
Certificate
This is to certify that Mr. Sanskar Sagar with Roll No. 48 of Semester IV of Diplomain
Computer Technology of Institute Sou. Venutai Chavan Polytechnic (Code: 0040) has
successfully completed the Micro-Project in Microprocessor (22415) for the academic
year 2022-2023 as prescribed in the curriculum.
Program Code: CM
Place: SVCP, Pune
Date: \04\2023
Mrs. A. S. Patil
Course Teacher
Course Code: CM/4/I
Enrolment No: 2100400144
Exam Seat No: 169336
Mrs A. V. Kurkute Dr.(Mrs.)M. S. Jadhav
Head of Department PrincipalINDEX
SRNO CONTENTS PAGE NO
1 ‘Aim of the Micro-Project 6
2 Rationale 8
3 Course Outcomes Achieved 8
4 Literature Review 8
6 Actual Methodology Followed 8
7 Source Code 9
8 Output 13
9 Skills Developed 13
10 | Application 14
il Conclusion 14Microprocessor (22415)
Annexure-I
Micro-Project Proposal
“Write an ALP to count the number of positive and negative numbers.
Write an ALP to count the number of even and odd numbers.”
1.0 Aim of the Micro-Project:
The Aim of the Micro-Project is to develop an ALP to count the number of positive and
negative numbers and also to develop ALP to count the number of even and odd numbers.
2.0 Intended Course Outcomes:
1. Analyze the functional lock of 8086.
2. Write an assembly language program for given problem
3. Use instructions for different addressing modes.
4, Develop an assembly language programs using assembler.
3.0 Proposed Methodology:
1, Study the various syntaxes of Assembly language.
2. Study the pin diagram of 8086 microprocessor.
3. Study the methods of programming in Assembly 8086.
4. Study to create algorithm in Assembly.
5. Study to create small programs in Assembly language.
6. Make program for given examples.
7. Prepare the final report.
4.0 Action Plan
Sr. Details of Act Planned | Planned Name of
No Start Finish Responsible
Date Date_| Team Members
1 : ae
[Identify the requirements of the] 1 95/5993|>9/92/2023| _ Sanskar Sagar
project.
2 | Design the structure of the Pushkar Adkar
project. 21/02/2023 | 27/02/2023
3 | Develop the program using Pradnya Bhakare
Assembly 8086 language. _| 28/02/2023 | 06/03/2023
4 | Debug code and eliminate Sanskar Sagar
errors occurred during —_| 07/03/2023 13/03/2023
compilation and execution.
5 Test the project. 20/03/2023 | 31/03/2023 Pushkar Adkar
Sou. Venutai Chavan PolytechnicMicroprocessor (22415)
6] Prepare the final report. | 03/04/2023] 10/04/2023] Pradnya Bhakare
5.0 Resources Required:
S.No. Resources required Specifications
1 Computer system | Intel(R) Pentium CPU, RAM 4 GB
2 Operating System | Windows 10, 64 Bit Operating System
3 Software's Emu8086
6.0 Team Members:
Sr.No Student Name Roll No.
1. Pushkar Adkar 05
2. Pradnya Bhakare 4
3. Sanskar Sagar 48
Sou, Venutai Chavan PolytechnicMicroprocessors - 22415
Annexure-II
Micro-Project Proposal
“Write an ALP to count the number of positive and negative numbers.
Write an ALP to count the number of even and odd numbers.”
1.0 Rationale:
In 1978, Intel launched 8086 microprocessors, which was a 16-bit processor, contains
approximately 29000 transistors. To write software for Intel’s x86 line of processors
‘Assembly language was used. Assembly language allows to write software’s for performing
different tasks on Intel’s processors.
Assembly language is still used today in some area of software field such as to write drivers
or to access low level hardware in a computer. In this micro-project, we aim to develop a
program to perform operations on strings using Assembly language.
2.0 Aim of the Micro-Project:
The Aim of the Micro-Project is to write an ALP to count the number of positive and
negative numbers and to write an ALP to count the number of even and odd numbers.
3.0 Course Outcomes Addressed:
1. Analyze the functional lock of 8086.
2. Write an assembly language program for given problem.
3. Use instructions for different addressing modes.
4. Develop an assembly language programs using assembler.
4.0 Literature Review:
Operations to be performed on array:
1, Find numbers of array.
2. Set counters.
3. Count the number of even and odd and also negative and positive numbers.
4, Check flag register.
5.0 Actual Methodology Followed:
The aim of the Micro-project is to develop program to count the number of positive and
negative numbers and also even and odd numbers.
1. Study the various syntaxes of Assembly language.
2. Study the pin diagram of 8086 microprocessor.
3. Study the methods of programming in Assembly 8086.
4. Study to create algorithm in Assembly.
Sou. Venutai Chavan PolytechnicMicroprocessors - 22415
5. Study to create small programs in Assembly language.
6. Make program for given examples.
7. Prepare the final report.
6.0 Resources Required:
S.No. Resources required Specifications
Computer system | Intel(R) Pentium CPU, RAM 4 GB
2 Operating System | Windows 10, 64 Bit Operating System
3 Software’s Emu8086
7.0 Source code :
1. Write an ALP to count the number of positive and negative numbers.
Algorithm:
Step 1: Initialize memory pointer initialize counter to count total numbers
Step 2: Initialize counters for negative, positive and zero numbers
Step 3: Get the number
Step 4: If Number = 0 then Increment zero number Counter Otherwise Check whether
Number less than 0 and MSB is equal to 0, if true then go to step 5 else go to
step 6.
Step 5: Increment negative number counter.
Step 6: Increment positive number counter.
Step 7: Increment Number by 1 ad again go to next number.
Step 8: Stop if all numbers are finish.
Flowchart:
Sou. Venutai Chavan PolytechnicMicroprocessors - 22415
Initialize memory pointer initialize counter to count total numbers
Initialize counters for negative, positive and zero numbers
Increment zero number
Counter
Increment neg:
Counter
Source Code :
-model small
12
Sou. Venutai Chavan PolytechnicMicroprocessors - 22415
data
array dw 5,-8,6,1,3,-2,4,-7,9,10
pos_no db 00h
neg_no db 00h
.code
mov ax,@data
mov ds,ax
mov cx,0ah
mov si,offset array
next: mov ax,[si]
rol ax,1
jedn
ine pos_no
jmp dnl
dn: inc neg_no
dnt: add si,2
loop next
mov ah,4ch
int 21h
ends
end
2. Write an ALP to count the number of even and odd numbers. ”
Algorithm :
Step 1: Get the numbers.
Step 2: Initialize memory pointer initialize counter to count total number.
Step 3: Initialize bl to 00h and bh to 00h.
Step 4: Initialize cl counter to 04h.
Step 5: Move data to accumulator.
Step 6: Perform ROR instruction by | count, If carry is generated then increment bh
otherwise increment bl.
Step 7: Decrement cl counter, if cl not equal to 0 then go for next number else
interrupt the program.
Flowchart :
Sou. Venutai Chavan PolytechnicMicroprocessors - 22415
Get the number
Initialize memory pointer initialize counter to count total number
Initialize bl to 00h and bh to 00h.
Initialize cl counter to 04h
Move data to accumulator
Perform ROR instruction by 1 count
increment bl
Source Code :
- Model Small
data
BLK DB 10h,40h,30h,60h
edb %h
o db %h
ends
Sou. Venutai Chavan PolytechnicMicroprocessors - 22415
code
mov ax, @data
mov ds, ax
lea si, BLK
mov bl, 00h
mov bh, 00h.
mov cl, 04h
up: mov al, [si]
ror al, 1
je go
inc bl
jmp next
go: inc bh
next: ine si
dec cl
jnzup
mov e,bl
mov o,bh
int 3
ends
end
8.0 Output :
1, Write an ALP to count the number of positive and negative numbers.
Sou, Venutai Chavan PolytechnicMicroprocessors - 22415
2. Write an ALP to count the number of even and odd numbers. ”
9.0 Skills Developed:
During the course of this micro-project, we learnt to make Assembly language program for
different problems.
a) We learnt various syntaxes of Assembly language,
b) We learnt to create algorithm in Assembly language.
©) We also learnt to develop programs in Assembly language.
10.0 Applications of this Micro-project:
This micro-project finds its application in:
a) To count the number of positive and negative numbers
b) To count the number of even and odd.
11.0 Conclusion:
We learn to make programs for different problems in Assembly language.
Sou, Venutai Chavan Polytechnic