Microproject (Mic) : SECOND YEAR (Sem-4)
Microproject (Mic) : SECOND YEAR (Sem-4)
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
[ANENEXURE-1]
Evaluation Sheet For
The Micro-project
(a)Practical Outcomes:
PO1, PO2, PO3, PO4, PO5, PO6, PO7, PO8, PO9, PO10.
21 Kajal
Hagwane
22 Deepak
Nandagavi
23 Rutvik
Khuntegave
24 Sahil
Jadhav
PUNE DISTRICT EDUCATION ASSOCIATION
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.
Introduction
3.
Explanation
4.
Algorithm
5.
Flowchart
6.
Code
7.
Output
8.
Reference
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.
DISPLAY OUTPUT
END
.STACK
.DATA
BIN DW 01A9H
.CODE
MOV AX,@DATA
DIV CL
MOV BCD+1,AL
DIV CL
END
OUTPUT:
REFERENCE:
https://www.Tutorialspoint.com/assembly_programming/
www.msbte.in