Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/18/03 13:25
Read: times


 
#48703 - RE: Converting Hex to Decimal in Hex
Responding to: ???'s previous message
Looks to me like you are trying to do what is commonly called BCD (for binary codes decimal). You are also actually converting a binary number which you happen to conveniently encode in hexadecimal for shorter typing.

Look at left and see button "Code Library". Click that and notice that there are two links to Binary to BCD convert routines. See below:



These are for 16-bit data but you should easily be able to adapt it to 8 bit data, even if that adaptation is as simple as passing your existing byte made into 16 bits by attaching another byte of zeros as the "upper byte".

Michael Karas


List of 14 messages in thread
TopicAuthorDate
Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
      RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
         RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
            RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
      RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
      RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
      RE: Converting Hex to Decimal in Hex            01/01/70 00:00      
   RE: Converting Hex to Decimal in Hex            01/01/70 00:00      

Back to Subject List