Concerning free software, programming, and whatever else I find interesting. Also the blog for my Web site, frigidcode.com.
Interesting facts about ASCII
Posted 02-03-2012 at 04:59 AM by hydraMax
Some interesting about ASCII, when it is represented as bytes in a binary system: (taken from Art of Assembly Language):
1) All alphabetic characters in standard ASCII can be converted to lowercase or uppercase simply by toggling the fifth bit (the first bit is bit zero). E.g.:
2) you can obtain the numeric equivalent of any of the numeric characters by subtracting 0x30 from the ASCII value.
3) Bits five and six will tell you which of the four ASCII groups your character is in:
1) All alphabetic characters in standard ASCII can be converted to lowercase or uppercase simply by toggling the fifth bit (the first bit is bit zero). E.g.:
Code:
E = 01000101 e = 01100101
3) Bits five and six will tell you which of the four ASCII groups your character is in:
Code:
Bit 6 Bit 5 Group 0 0 Control Characters 0 1 Digits & Punctuation 1 0 Upper Case & Special 1 1 Lower Case & Special
Total Comments 0