03-08-2013, 02:35 PM
BCD TO HEX CONVERSION
AIM:
To convert two BCD numbers in memory to the equivalent HEX number using 8085
instruction set
ALGORITHM:
Initialize memory pointer to 4150 H
Get the Most Significant Digit (MSD)
Multiply the MSD by ten using repeated addition
Add the Least Significant Digit (LSD) to the result obtained in previous step
Store the HEX data in Memory
RESULT:
Thus the program to convert BCD data to HEX data was executed.