DY PATIL
UNIVERSITY
A Micro- Project on :- Mini-Calculator
In
Diploma IV Semester
Course Title :- Microprocessors
Course Code :- (22415)
Submitted By:
Raj Tendulkar - 58
Owais Azam - 53
Suresh Parthi -57
Guide:
Mrs. Aniti Roy Choudhury
Program of Computer Engineering
2018-2019
Dr. D.Y Patil, School of Polytechnic, Vidyanagar,
Sec-7, Nerul, Navi Mumbai 400 706.ACKNOWLEDGEMENT
| take this opportunity to express deep sense of gratitude
and sincere thanks for the invaluable guidance that | have
received at the worthy hands of my Guide Mrs. Anita Roy
Choudhury .
| express my sincere thanks to our H.O.D. Prof. Umesh
Patil for permitting me to do this project and also to the entire
staff member who have helped me directly or indirectly.
| also express my thanks to my friends for their
underlying support shown during the preparation of this
project.
04 (1)
DYPP, Nerul.
PROGRAM OF COMPUTER ENGINEERING
DR. D. Y. PATIL, SCHOOL OF POLYTECHNIC
VIDYANAGAR,
SEC-7, NERUL, NAVI MUMBAI- 400 706Title: - Mini-Calculator
Aim of Micro-Project:
This project consists of the in-depth knowledge of assembly programming
language including registers, data shifting, procedures, codes,cte as the project
“Mini-Calculator” was created using assembly language. It gets the system's
Calculation it on the console screen.
COURSE OUTCOMES ACHIEVED:
. Analyze the functional block of 8086 microprocessor.
.. Write assembly language program for the given problem,
. Use instructions for different addressing modes
. Develop an assembly language program using assembler,
. Develop assembly fanguage programs using procedures, macros and
modular programming approach.
wpune
PROPOSED METHODOLOGY
We have created an assembly language program that displays the system's
Calculation. Calculation is displayed in format of Addition, Subtraction, Division,
MultiplicationAction Plan
Sr. | Details of activity Planned Planned Name of
No Start Finish responsible
Date Date team member
1 | Searched and selected Owais, Raj,
topic for Suresh
micro-project
2. | Discussed about the title Owais, Raj,
of Micro - Project Suresh
3. | Selection the proper Owais, Raj,
subject Suresh
4 _| Discussion regarding the Owais, Raj,
topic with Guide Suresh
5 | Selection of proper Owais, Raj,
Circuit diagram and Suresh
components
6 | Collecting all components Owais, Raj,
for circuit Suresh
7 | Completing the Circuit Owais, Raj,
and report Suresh
8 | Working and finalization Owais, Raj,
of the Micro-Project Suresh
(Signature of faculty)RESOURCES REQUIRED:
Sr.no| Name of Specification Quantity
Resources/material
1 | Desktop Computer CPU-13 1
RAM~4GB
OS — Windows 10
nv
Software
Editor : Notepad, Notepad++
Assembles:
Linker
Other
Command Prompt(CMD)INDEX
Sr.no Topic Page
no
1 Rationale
2 Aim of the micro-project
3 Course Outcomes achieved
4 Literature review
5 Actual Methodology Followed
6 Resources Used
7 Output
8 Skills Developed
9 Application Of The Micro-Project
10 Conclusion
11
Micro Project Evaluation SheetRATONALE OF THE MICRO-PROJECT:
This project consists of the in-depth knowledge of assembly programming
language including registers, data shifting, procedures, codes,ete as the project
“Mini-Calculator’ was created using assembly language. It gets the system's
Calculation it on the console screen,
Aim of Micro-Project:
This micro project aims at-
1. Introduction to 8086 Assembly Language Programming
2. Creating a program of displaying Addition, Subtraction, Division,
Multiplication based on system, retrieval procedures
3. Understanding the logic and ideas
4, Imagination skills
Its objective is to-
. Introduce 8086 Assembly Language Programming
. Introduce date and time procedures
. Perform system related operations
Make an advance way to solve the problem
Bene
COURSE OUTCOMES ACHIEVED:
1. Analyze the functional block of 8086 microprocessor.
2. Write assembly language program for the given problem.
3. Use instructions for different addressing modes.
4. Develop an assembly language program using assembler.
5. Develop assembly language programs using procedures, macros and
modular programming approach.LITERATURE REVIEW:
1. Book Name: Microprocessor and interfacing (programming and hardware)
Author: Hall and Douglas V.
Publication Year: 1986
Context:
Microprocessors and Interfacing consists of programming, system
connections, and interfacing of microprocessors and their peripheral
devices in detail. These chapters cover assembly language programming of
8086-based systems. Latter portions of the text discuss all aspects of
interfacing, including bus architecture, microcomputer interfaces with
input/output devices and systems, A/D and D/A conversion, and operating
systems
Salient Features:
¥ Discusses various microprocessors and interfacing techniques
Y Consists of in-depth knowledge about microprocessor programming
2. Book Name: The 8088 and 8086 Microprocessors
Author: Triebel, Walter A., Singh and Avtar
Publication Year: 1991
Context:
Future designers of microprocessor-based electronic equipment need a
systems-level understanding of the 80x86 microcomputer. It offers
thorough, balanced, and practical coverage of both software and
hardware topics. Basic concepts are developed using the 8088 and 8086
microprocessors, but the 32-bit versions of the 80x86 family are also
discussed.
Salient Features:
¥ Embedded with the basics of core 8088 and 8086
¥ In-depth diagrams in addition to circuitsAlgorithm
1. input 2 numbers from the user (no need to check the integrity of the input)
2. Subtraction and ADD action between the 2 numbers
3. divide action between the 2 numbers
4. muliplication action between the 2 numbers
5. print the result on the screen in DECIMAL or BINARY or HEXA depending on
choice
how it works: the program will first get a key press and will act on that choice
- input 2 numbers
- ADD action
- Substraction action
- Multiplication
- divide
= print
D- print in decimal
H- print in hexa
B- print in binary
- Exit programIn this project we used some syntax and they are shortly described below:
INT 21h
® Here INT 21h is used for getting input.
MUL BX
> For multiplying the value of AX with BX.
CMP AL, ODH
> For comparing the value of AL with Enter.
DIV BX
> For dividing the value of AX by BX.
ADD BX,AX
» For adding the value BX with AX
SUB BX,AX
> For subtracting the value BX with AX
CALLE
> To call a Procedure named NL.
JMP START
> To JUMP a Label named START.
SHL BL
> To Shifting left the value of BL.th
ol
eProgram Code
(WE SHE
Shale fou Rilc3>
Enter 2 nuabers for fltiplicat on: 5” 62
eecinia YoU" 65
te DB “tor Another Calowlation, ype = ‘ve apy CALL NL
th? DB “To EXIL.: se iad ave CALL WL
oe um cau
AiIN proc ae Mou au.2
L| pe a78 CMP BL.’1" INT 218
tata or ni, auth
. 81 CHP BL.*2° cal
IMT ai 83, cent a
O86 mer nude ‘CALL NL
CALL ta 087 CMP BL,’ 4? CALL Nhe
pan 4 " wa Ba
mas wis ee
:
ee Aba B a,
cL. o94 JMP CALC ‘MOU AH.9
ger e Bhat
nt a aeHOw WHT
INT 214
Hou BL,AL
CHP BL
JE START
CALL NE
CALL NE
CALL TNX
IMP EXIT
SUBB:
LEA DR.MG
Mov Alla?
INT 214
Hou Alt
INT 241i
MoU BL.aL
SUB BL.CL
CMP BLZS>
dG
ADD BL.48
CALL NL
CALL NL
CALL DR
hou AN.2
Mou DLL
INT 218
CALL NL
CALL NL
CALL BR
CALL NL
CALL NL
LEA Dx, M16
Mou AH:9
INT 241i
Chi ML
LEA Dx, m19
mou Ale®
INT 214
CALL ML.
LEA DX,H9
Mou Alls9
INT 21h
Mou Allat
INT 21h
GHP BLc'1”
JE START
CALL NL
CALL NL
CALL TNR
MP EXIT
mute
LEA Dx.n?
Mou Al:®
INT 24h
Mou
hou
Hou
MoU
CALL NL.
CALL NE.
GALL DR
Mov au.2
Mov DL; cL.
INT 21h
Mov BL. cL
GALL NL
CALL HR
CALL NL
CALL BR
CALL NL.
GALL NL
LEA DX.M16
NOU BL.AL,
OnP BL?
JE START
CALL NL
LN
CALL THR
ane EXIT
LEQ Dene
KOU akg.
INr 24%
hou ay.
KOU BK -6
nov Choe
OU Dk:
SI
Hou:
Hou aH .2
Hou DL."
INT ati
Nou aK 4
IME 24th
SUB AL. 48
CHP AL;e.
JEL
hou BL.aL
CHP. Ch.E
ak
NOU AK.cx
DIU BL
HOU GH Ax
ADD Ch.48,CALL ML.
CALL BR
LEA DMS
HOU AN
INE 23
ADD BL. BH
CALL
ALL Mi.
40
aa
a
418
419
at
CALL AE
LEA DR.MiG
Mo Al?
INT 24h
CALL NL.
LEA DK.Mi7 |
Mou aH? | 45
INT 24/4
CALL NL |4
LEA Dx.M9
Mou ang a2
Int 2a |
Mou att |
INT 24 | 55
MOU BL. Al
GMP BL: *4* |453
SE star |47)
CALL NL 1
CALL NL 47
a4
475
cau INK |i
gmp ERIE. 47
1m
NL: a
Mov an.2 480
Mov DLs | 431
INT 21H |432
Mov DLte [40>
Int 2th |
LEA DM.Mit |10?
ano
Int 2a
yey a.m |
INT 24/08
mer, [5a
LEA D,t3
OU All.
IW 21
SUB BL, 48
INT 24f
Loop To?
ANP NEXT
on:
OU aH?
ou DL.*1*
IMT 24
Loop TOP
ERT:
RET
Nou cH.
ToPa:
SHL Bhs,
Jc ONES
hou Ang,
Hou DL:7a"
INT 218
Loop ToPL
SMP’ NEXTL
L
CALL NL
CALL NL.
LEA Dx, m8
Mou all>
INT 248
CALL NL.
amp apDp
LEA Dx, M18
Nou ang
INT 218
CALL NL.
ane SuBB
ST
Ey
fey
a
558
BND
TEA DEAE
HOU ag
INT i
caLL ML
SMP MULL
ke
ALL NE
ALL AL
EA DKt8
HOU Ag
INT if
ALL ML
NP DLUU
EXIT:
nou Aiea
INT 214i
MAIN EDP
minActual Resources Used
Sr.no] Name of Specification Quantity
Resources/material
1 | Desktop Computer CPU-13 1
RAM ~4GB
OS- Windows 10
2 | Softwre Editor : Notepad, Notepad++ | 1
Assembl
Linker
Other
Command Prompt(CMD)OUTPUT:
See ec
pa en rs
est
Subtraction, type
Pitre)
CSCO
Ce Eee
Cree Ce SCE
4
erty
EC cen aes CC
For Another Calculation, type: '1"
eure
erent
Tas
3es es
Brac rasec tard s
tains eras Fa
tae RED reer
comic
rae’
Enter 2 numbers for Division: 8/4
rea
ies Aras Re fo
erry A) CET)
ered Poe
eet
eae
Parra
eee eae
Pen Cece estvert tet e ed
er 6
[eae een remy
eat aers PT
For Another Calculation, type: "1
les cree
peer aedILLS DEVELOPED:
1. Logical and Reasoning
2. Thinking skills
3. Designing skills
4, Imagination skills
Applications of the Micro Project
4. A sample project based on system related operation
2. Sequel date and time programs using different formats
3. To save the date and time for each transactions or operations
4. Can be used in Bank Management System, Hotel Management System, etc
5. It can also be used for schedule or related operations or clock, etcConclusion
Thus, by completing this project we have not only understood the Assembly
Programming Language but also different methods of solving a problem. We
have understood the core of system related operations, getting value and
passing to variable, shifting of data, registering, etcEvaluation Sheet
Name of student: Enrollment No:
Name of Program: Computer Engineering Semester: IV
Course Title: MIC Code:22415
Title of the Micro Project: Mini-Calculator
Course Outcomes Achieved
a) Use number system and codes for interpreting working of digital system.
b) Use Boolean expressions to realize logical circuits.
¢) Build simple combinational circuits.
) Build simple sequential circ
Evaluation as per Suggested Rubrics for Assessment of Micro Project
Sr. | Characteristics Poor ‘Average | Good Excellent
No_| tobeassessed (Marks 1-3) | (Marks 4-5)_| (Marks 6-8) | (Marks 9-10)
(A) Process and Product Assessment (Convert above total marks out of 6 Marks )
1 | Relevance to the
Course
2 | Literature
survey/
Information
Collection
3 | Completion of
the target
‘4 | Analysis of Data
And
representation
5 | Quality of
prototype/Model
6 | Report Preparation
(8) Individual Presentation /Viva (Convert above total marks out of 4 marks )
7 | Presentation
3 | Viva
‘SIGNATURE:Process Assessment
Product Assessment
Total
Marks 10
Part A- Project | Project Part-B Project | individual
Proposal Methodology Report/ Working | Presentation / Viva
(2marks) (2marks) Model (2 marks) | (4 marks)
Comments/suggestions about team work/leaders!
any)
{ter-personal communication (if
Any other comments :
Signature :.