Hello everybody,
I have two registers in my 8051:
R0 and R1 which represent a digit decimal number.
I need to convert it to a binary/hex number and place it in another register..
Was wondering if the following method would take care of it:
mov a,r0 ; take the units directly as it is to the LSB mov r7,a
mov a,r1 ; take the tens by mutliplying with #10D and mov b,#10 ; adding to the LSB mul ab add a,r7 mov r7,a
So would my r7 now have the binary equivalent of r0r1(decimal number)
Thank you, Methi