hello forum, I am new to this platform,by searching my problem on net I was diverted to this site and i like this site. I feel i will get my problem solved. I want to convert 18bit offset binary data to BCD using 8051 assembly code. ( I have not much experience using c, nor I have any such tool.) Is anybody can help to solve my problem? Thankx in advance. Bharat.
Just in case it helps, for a C algorithm see: http://www.keil.com/forum/docs/thread890.asp The same algorithm should be straightforward to implement in assembler. In some ways, it is actually easier in assembler. If you know how to do BCD arithmetic using the DA instruction, you will easily be able to keep all the decimal digits compacted into two per byte.
What do you mean by "18 bit offset binary data"? What is different from just "18 bit binary data"?