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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/23/07 15:57
Modified:
  05/23/07 15:57

Read: times


 
#139665 - Think about it!
Responding to: ???'s previous message
Sanjib Roy said:
mov a,#06h
Mov b,#03h

The numerical value #06h is not the same as the character value '6', is it?

Generally, characters are transmitted using ASCII code:

The ASCII code for a character '0' is 0x30;
The ASCII code for a character '1' is 0x31;
The ASCII code for a character '1' is 0x32;
:
The ASCII code for a character '8' is 0x38;
The ASCII code for a character '9' is 0x39;

You should be able to spot a pattern there that would make it easy to conver the ASCII codes for characters '0' to '9' into their corresponding numerical values...

Here is a full chart of all the ASCII code values:
http://www.asciichart.com/ascii_hexadecimal.html

You should be able to work out a similar pattern for converting the ASCII codes for characters 'A' to 'F' into their corresponding numerical values...

And another for characters 'a' to 'f'...



See also: http://www.8052.com/forum/read.phtml?id=139235



List of 18 messages in thread
TopicAuthorDate
Dec to Hex Converter.            01/01/70 00:00      
   What do you mean?            01/01/70 00:00      
      Dec to Hex Converter.            01/01/70 00:00      
         Think about it!            01/01/70 00:00      
            Dec to Hex Converter.            01/01/70 00:00      
               Think about it!            01/01/70 00:00      
   Try the code Library            01/01/70 00:00      
   Not understand            01/01/70 00:00      
      Gee Wiz            01/01/70 00:00      
         Olympic sprinting before crawling?            01/01/70 00:00      
            You are right, and ...            01/01/70 00:00      
               GREAT            01/01/70 00:00      
               Dechex            01/01/70 00:00      
                  I would call this...            01/01/70 00:00      
                  What is a "4m remote" ?            01/01/70 00:00      
      Back to basics            01/01/70 00:00      
      Example            01/01/70 00:00      
      Conversion            01/01/70 00:00      

Back to Subject List