03-08-2013, 02:35 PM
HEX TO BCD CONVERSION
AIM:
To convert given Hexa decimal number into its equivalent BCD number using 8085
instruction set
ALGORITHM:
Initialize memory pointer to 4150 H
Get the Hexa decimal number in C - register
Perform repeated addition for C number of times
Adjust for BCD in each step
Store the BCD data in Memory
RESULT:
Thus the program to convert HEX data to BCD data was executed.