03-08-2013, 02:36 PM
HEX TO ASCII CONVERSION
AIM:
To convert given Hexa decimal number into its equivalent ASCII number using
8085 instruction set.
ALGORITHM:
Load the given data in A- register and move to B – register
Mask the upper nibble of the Hexa decimal number in A – register
Call subroutine to get ASCII of lower nibble
Store it in memory
Move B –register to A – register and mask the lower nibble
Rotate the upper nibble to lower nibble position
Call subroutine to get ASCII of upper nibble
Store it in memory
Terminate the program.
RESULT:
Thus the given Hexa decimal number was converted into its equivalent ASCII Code.