Hi,
I want to know how the 6 digit bcd is converted into hex value Ex: 123456 to 1E240. Please help me by providing the assembly code for 8051.
hi macro,
I am not getting any thing in what you have posted.. and I think this is not a code for bcd to hex conversion...
Sharath
You didn't follow the instructions for posting source code, did you?
Look at the picture - it tells you clearly what to do: www.danlhenry.com/.../keil_code.png
Your code is also devoid of any meaningful comments.
Your first step to understanding what that code does should be to comment what it is doing.
Again, if you understand what your code is doing, you should easily be able to extend it to extra digits...
BTW: Are you sure you are dealing with BCD here...?
This thread is about BCD: http://www.keil.com/forum/19104/
Do you really mean BCD ?
en.wikipedia.org/.../Binary-coded_decimal