| ??? 04/23/00 18:00 Read: times |
#2305 - RE: BCD to Bin and Bin to BCD algorithm |
Hello. I am beginer in MCS51, but I solve this problem at ASM.
Check Intel's Embedet Aplications Handbook for ideas I found 3 diferent ways: 1. Calculate result direct example: A4*2^4+A3*2^3+A2*2^2+A1*2^1+A0*2^0= =(((A4*2+A3)*2+A2)*2+A1)*2+A0 2. Calculate result using tables example: begin with LSB is it true(log 1) yes then add to result table value (001) no then no add nothing check next bit 3. Calculate result by substracting constants 1, 10, 100... from source digit Sorry if my english is bad. Write my |
| Topic | Author | Date |
| BCD to Bin and Bin to BCD algorithm | 01/01/70 00:00 | |
| RE: BCD to Bin and Bin to BCD algorithm | 01/01/70 00:00 | |
RE: BCD to Bin and Bin to BCD algorithm | 01/01/70 00:00 |



