This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to conventer unsigned long to BCD code faster?

just as titleï¼
now i'am use this method:
a=value%1000/100;
b=value%100/10;
c=value%10;
but it's slow,any faster methods?
thanksï¼

Parents
  • Yes, people browse forums when they have free time.

    But see it this way:
    If a student has a problem at school, he may ask the teacher for help. After he has received help, should he then find another teacher and once more ask for help with the same problem - just checking that the two teachers gave the same answer?

    Wouldn't that waste the time for the teachers - time that they could have used to help someone else?

    That is the reason why you should always add links between the forums if you post a question on multiple sites.

    Since you had received two possible solutions to your question, you could have linked to this forum, and asked at 8052.com: Anyone know any better solution than these two, or how they can be rewritten to better take advantage of my specific processor?

Reply
  • Yes, people browse forums when they have free time.

    But see it this way:
    If a student has a problem at school, he may ask the teacher for help. After he has received help, should he then find another teacher and once more ask for help with the same problem - just checking that the two teachers gave the same answer?

    Wouldn't that waste the time for the teachers - time that they could have used to help someone else?

    That is the reason why you should always add links between the forums if you post a question on multiple sites.

    Since you had received two possible solutions to your question, you could have linked to this forum, and asked at 8052.com: Anyone know any better solution than these two, or how they can be rewritten to better take advantage of my specific processor?

Children