03-08-2013, 02:37 PM
ASCII TO HEX CONVERSION
AIM:
To convert given ASCII Character into its equivalent Hexa Decimal number using
8085 instruction set.
ALGORITHM:
Load the given data in A- register
Subtract 30 H from A – register
Compare the content of A – register with 0A H
If A < 0A H, jump to step6. Else proceed to next step.
Subtract 07 H from A – register
Store the result
Terminate the program
RESULT:
Thus the given ASCII character was converted into its equivalent Hexa Value.