- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
8086 program to convert an 8 bit BCD number into hexadecimal number
In this program we will see how to find the equivalent hexadecimal number from a BCD number.
Problem Statement
Write 8086 Assembly language program to find the equivalent hexadecimal number from a BCD number. The number is stored at memory offset 500 and store the result at memory offset 600.
Discussion
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.
Input
Address | Data |
---|---|
… | … |
500 | 59 |
… | … |
Flow Diagram
Program
Output
Address | Data |
---|---|
… | … |
600 | 3B |
… | … |
- Related Articles
- 8085 program to convert 8 bit BCD number into ASCII Code
- 8085 program to convert an 8 bit number into Grey number
- 8086 program to convert ASCII to BCD number
- 8086 program to divide a 16 bit number by an 8 bit number
- 8086 program to add two 8 bit BCD numbers
- 8086 program to subtract two 8 bit BCD numbers
- 8086 program to reverse 8 bit number using 8 bit operation
- 8085 Program to convert an 8-bit binary to BCD
- 8086 program to reverse 16 bit number using 8 bit operation
- 8085 Program to convert a 16-bit binary number to BCD
- 8086 program to find sum of digits of 8 bit number
- 8086 program to subtract two 16 bit BCD numbers
- Program to convert a 16-bit binary number to BCD in 8085 Microprocessor
- 8085 Program to Divide a 16-bit number by an 8-bit number
- Java program to convert decimal number to hexadecimal number

Advertisements