ASCII - SCLM

 

 

Further Explanation

Indeed, bits five and six determine which of the four groups in the ASCII character set you're in:

Bit 6 Bit 5 Group
0 0 Control Characters
0 1 Digits and Punctuation
1 0 Upper Case and Special
1 1 Lower Case and Special

So you could, for instance, convert any upper or lower case (or corresponding special) character to its equivalent control character by setting bits five and six to zero.

Consider, for a moment, the ASCII codes of the numeric digit characters:

Char Dec Hex
'0' 48 30
'1' 49 31
'2' 50 32
'3' 51 33
'4' 52 34
'5' 53 35
'6' 54 36
'7' 55 37
'8' 56 38
'9' 57 39

previous next

   
Home Inlab Solution