0% found this document useful (0 votes)
1K views

Microproject (Mic) : SECOND YEAR (Sem-4)

This document describes a student microproject to convert a hexadecimal number to its equivalent binary coded decimal (BCD) representation. A group of 4 students created an assembly language program to perform this conversion under the guidance of their instructor, Mrs. Deshmukh. The program takes a hexadecimal number as input, performs the necessary logical operations to calculate the BCD representation, and outputs the result. The document includes an evaluation sheet for the project with details on the learning outcomes, methodology, resources used, and names of the contributing students.

Uploaded by

Sahil Jadhav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Microproject (Mic) : SECOND YEAR (Sem-4)

This document describes a student microproject to convert a hexadecimal number to its equivalent binary coded decimal (BCD) representation. A group of 4 students created an assembly language program to perform this conversion under the guidance of their instructor, Mrs. Deshmukh. The program takes a hexadecimal number as input, performs the necessary logical operations to calculate the BCD representation, and outputs the result. The document includes an evaluation sheet for the project with details on the learning outcomes, methodology, resources used, and names of the contributing students.

Uploaded by

Sahil Jadhav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

PUNE DISTRICT EDUCATION ASSOCIATION

THE INSTITUTE OF TECHNOLOGY, HADAPSAR, PUNE.

MICROPROJECT (MIC)
SECOND YEAR (sem-4)
PROJECT NAME: Convert
Hexadecimal no. into BCD no.
DEVELOPED BY:
SR. NO. ROLL NO NAME
1. 21 KAJAL HAGWANE
2. 22 DEEPAK NANDAGAVI
3. 23 RUTVIK KUNTEGAVE
4. 24 SAHIL JADHAV

PROJECT GUIDE: Mrs. DESHMUKH V.J.


PUNE DISTRICT EDUCATION ASSOCIATION

THE INSTITUTE OF TECHNOLOGY, HADAPSAR , PUNE.


PART – A

[ANENEXURE-1]
Evaluation Sheet For
The Micro-project

Academic Year 2020-2021 Name of Faculty: Mrs. Deshmukh V.J.

Course: Computer Engineering Course Code: 22145 Semester: IV

Title of the Project: Program to convert hexadecimal number to equivalent BCD


numbers and converting BCD.
COs add ressed by the Micro Project:
 Write assembly language program for given problem.
 Use instructions for different addressing modes.
 Developed assembly language program using assembler.

Major Learning Outcomes achieved by students by doing the Project:

(a)Practical Outcomes:
PO1, PO2, PO3, PO4, PO5, PO6, PO7, PO8, PO9, PO10.

(b) Unit Outcomes in Cognitive domain:


UO1, UO2, UO3, UO4, UO5 .

(c) Outcomes in Affective Domain-


A. Create, edit, format, and save business document.
B. Create, interpret, format and save spreadsheets.
C. Prepare Professional presentation.
D. Use internet.
Roll No. Student Name Marks out of Marks out of 4 Total out
for for of 10
performance performance in
oral I
in grou p presentation
activity (D5 Col. 9)

21 Kajal
Hagwane
22 Deepak
Nandagavi
23 Rutvik
Khuntegave
24 Sahil
Jadhav
PUNE DISTRICT EDUCATION ASSOCIATION

THE INSTITUTE OF TECHNOLOGY, HADAPSAR , PUNE.


1.0 Aim of the Micro-Project :
This Micro-project aims at
 To convert the hexadecimal numbers into BCD numbers.
 To run the output on console.
2.0 Proposed Methodology:
To convert BCD to hexadecimal at first we have to cut the BCD digits. The most
significant digit will be multiplied with 0AH (10D), and then least significant digit
will be added with the result of multiplication. Thus the BCD will be converted to
its equivalent hexadecimal form.
3.0 Course outcomes:
 Write assembly language program for given problem.
 Use instructions for different addressing modes.
 Developed assembly language program using assembler.
4.0 Action plan:
Sr Detail of Activity Plan Plan Responsible
No Start Finish Team
. Date Date Member.
1 SELECTION 12/4/22 14/4/2 KAJAL
HAGWANE
2
2 DATA GATHERING 15/4/22 17/4/2 KAJAL,DEEPAK,
RUTVIK,SAHIL
2
3 ALGORITHM 18/4/22 20/4/2 DEEPAK
NANDAGAVI
2
4 FLOWCHART 21/4/22 22/4/2 RUTVIK
KHUNTEGAVE
2
5 PROGRAM 23/4/22 24/4/2 KAJAL
HAGWANE
2
6 OUTPUT 25/4/22 25/4/2 DEEPAK
NANDAGAVI
2
7 ERROR SOLVING 26/4/22 26/4/2 KAJAL
HAGWANE
2
8 DOCUMENTATION 1/5/22 3/5/22 SAHIL JADHAV
5.0 Resources required:

Sr No. Name of Specification Qty Remarks


resource/Material
1 Computer System Windows 10 1
2 Software Tasm 1.4 1
3 Software Microsoft 1
word

6.0 NAME OF TEAM MEMBERS WITH ROLL NUMBERS:

SR. NO. ROLL NO. NAME OF TEAM MEMBER


1. 21 Kajal Hagwane
2. 22 Deepak Nandagavi
3. 23 Rutvik Khuntegave
4. 24 Sahil Jadhav
PUNE DISTRICT EDUCATION ASSOCIATION

THE INSTITUTE OF TECHNOLOGY, HADAPSAR, PUNE.


[ANENEXTURE – II]

1.0 Brief Introduction:
In computing and electronic systems, binary-coded decimal (BCD) is a class of  binary encodings
of  decimal numbers where each decimal digit
 is represented by a fixed number of  bits, usually four or eight. Hexadecimal (also base 16, or
hex) is a positional numeral system with a radix, or base, of 16. It uses sixteen distinct symbols,
most often the symbols "0" –"9" to represent values zero to nine, and "A" –"F"(or alternatively
"a" –"f") to represent values ten to fifteen.

2.0 program outcomes achieved:


 Basic knowledge: An ability to apply knowledge of basic mathematics, science and
engineering to solve the engineering problems.
 Discipline knowledge: Apply basic electronics knowledge to solve board base
computer engineering related problems.
 Experiments and practice: plan to perform Experiments and practices to use the
results to solve board base computer engineering related problems.
3.0 Application :
Computer understands information composed of only Zeros and Ones. Therefore,
when we type some letters or words, data is processed by the computer in the form
of 0s and 1s. A computer can understand positional number system where there are
only a few symbols called digits and these symbols represent different values
depending on the position they occupy in the number. Computer is usually designed
to process hexadecimal number.
BCD stands for binary coded decimal in which the digits of a decimal number are
encoded and are grouped into four binary digits one at a time. Its mainly used for
accurate representation of decimal number and it's conversion to and fro with other
number system.
PUNE DISTRICT EDUCATION ASSOCIATION

THE INSTITUTE OF TECHNOLOGY, HADAPSAR , PUNE.


Part – B
INDEX
SR.NO TITLE
1.
Title of project

2.
Introduction

3.
Explanation

4.
Algorithm

5.
Flowchart

6.
Code

7.
Output

8.
Reference

PUNE DISTRICT EDUCATION ASSOCIATION


THE INSTITUTE OF TECHNOLOGY, HADAPSAR , PUNE.
TITLE OF PROJECT: Convert hexadecimal number into equivalent BCD.
INTRODUCTION:
IN THIS PROJECT WE INTRODUCED HEXADECIMAL NUMBER AND EQUIVALENT BCD WITH
THE HELP OF ASSEMBLY PROGRAMMING LANGUAGE .TO EXECUTE THE PROGRAM WE USE
TASM SOFTWARE WITH VERSION 1.4.

In computing systems, binary-coded decimal (BCD) is a class of binary encodings of decimal


numbers where each digit is represented by a fixed number of bits, usually four or eight.
Sometimes, special bit patterns are used for a sign or other indications.

Hexadecimal is a base-16 number system. It is a different method of representing numbers


than the base-10 system we use in every day practice. In base-10, we count in multiples of
10 before adding another digit.

EXPLAINATION:
 In this program we convert hexadecimal number into equivalent BCD. In program we
have to use directives, mnemonics. This program divide into three parts: memory
models, declare or initialize data, main code.
 In this program, .MODEL SMALL is a memory model, it determines size of code and data
pointers. The stack often holds temporary & local variables. Use the .STACK directive
only when writing a main module in assembly language. The .STACK used to create stack
segment. The .DATA directive create a near data segment. This segment contains the
frequently use data for program. The .CODE directive in program instruct the assembler
to start the code segment.
 Declare & Initialize the variables BIN=019AH, BCD. After that initialize data segment &
start main code.
 First we store ax register in bin variable,…store 64h in cl register,…cl register divide to ax
register after that we store remainder and quotient,…then store AH in AL register….. &
clear accumulator …after that we store AH register in CL register & store 04 in CL
register. By using ROR instruction we rotate carry to right side and store result …. &
terminate the program.

PUNE DISTRICT EDUCATION ASSOCIATION


THE INSTITUTE OF TECHNOLOGY, HADAPSAR , PUNE.
ALGORITHM:
1. Start
2. Declare variables BIN, BCD.
3. Initialize variables BIN =019AH, BCD.
4. Initialize data segment.
5. Divide the given hexadecimal number by 64h.
6. Store the quotient in separate memory location. Remainder is then divide with 0Ah.
7. Quotient is then rotated 4 times to bring the number to 10’s place & added with
remainder to get the BCD number.
8. End.
FLOWCHART:
START

DECLARE VARIABLES BIN,BCD

INITIALIZE VARIABLES BIN=019AH,BCD

DIVIDE HEXADECIMAL NO.

STORE QUTIENT & DIVIDE REMAINDER

ROTATE QUTIENT USING ROR INSTRUCTION

ADD QUTIENT WITH REMAINDER FOR RESULT

DISPLAY OUTPUT

END

PUNE DISTRICT EDUCATION ASSOCIATION

THE INSTITUTE OF TECHNOLOGY, HADAPSAR , PUNE.


CODE:
.MODEL SMALL

.STACK

.DATA

BIN DW 01A9H

BCD DB 2 DUP (0)

.CODE

MOV AX,@DATA

MOV DS,AX ; INITIALIZE DATA SEGMENT

MOV CL,64H ; STORE 64H IN CL REGISTER

DIV CL

MOV BCD+1,AL

MOV AL,AH ; STORE AH IN AL REGISTER

MOV AH,00H ; CLEAR ACCUMULATOR

MOV CL,0AH ; STORE 0AH IN CL REGISTER

DIV CL

MOV CL,04H ; STORE 04 IN CL REGISTER

ROR AL,CL ; ROTATE CARRY TO RIGHT SIDE

ADD AL,AH ; STORE RESULT

MOV AH,4CH ; TERMINATE THE PROGRAM

PUNE DISTRICT EDUCATION ASSOCIATION

THE INSTITUTE OF TECHNOLOGY, HADAPSAR , PUNE.


INT 21H ; RETURN DOS

END

OUTPUT:

The HEXADECIMAL no. is 01A9h that we convert into


BCD no. which is 525.
Result is stored in ax register.

REFERENCE:
 https://www.Tutorialspoint.com/assembly_programming/
 www.msbte.in

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy