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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/10/08 09:54
Read: times


 
#149213 - Correct!
Responding to: ???'s previous message
Adrian Hodgson said:
I should be adding 30Hex (0011 0000)...

Yes - 0x30 (in 'C' notation) is the ASCII code for the character '0'

... or 37Hex (0011 0111)

and 0x37 is the ASCII code for the character 'A', minus ten.

Full explanation here: http://www.8052.com/forumchat/read.phtml?id=149211

It is left as an exercise to the student to work out the appropriate conversion to give lowercase characters 'a' - 'f'...





List of 15 messages in thread
TopicAuthorDate
How common is 2 Byte ASCII HEX?            01/01/70 00:00      
   That is an odd way of looking at is            01/01/70 00:00      
      Must not post when tired            01/01/70 00:00      
         Correct!            01/01/70 00:00      
   Very common indeed!            01/01/70 00:00      
      hex_digit_to_ascii            01/01/70 00:00      
         optimisation            01/01/70 00:00      
            you could, but            01/01/70 00:00      
   Widespread            01/01/70 00:00      
      ERR Thanks            01/01/70 00:00      
         C suggestion            01/01/70 00:00      
            and 10 times tougher ..            01/01/70 00:00      
            beware            01/01/70 00:00      
               C? sorry long post!            01/01/70 00:00      
                  'C' - not rocket science            01/01/70 00:00      

Back to Subject List