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.
Again, you already have code that deals with multiple registers - look at how that works, and extend it.
And again: Your first step, of course, must be to understand the code that you have.