MCS-012 Computer Organisation and Assembly Language Programming

First year, Semester 1

Alphanumeric Representation

Alphanumeric representation refers to the encoding of both letters (alphabetic characters) and numbers (numeric characters) within computer systems. This allows computers to process and display textual information alongside numerical data. Alphanumeric characters include the letters A-Z (both uppercase and lowercase), the digits 0-9, and often various punctuation marks and special symbols.


Character Encoding Schemes

To represent alphanumeric characters in computers, various character encoding schemes have been developed. These schemes map each character to a unique binary value, allowing the computer to store and manipulate text data. The most common character encoding schemes include:

  1. ASCII (American Standard Code for Information Interchange)
  2. EBCDIC (Extended Binary Coded Decimal Interchange Code)
  3. Unicode


ASCII (American Standard Code for Information Interchange)

ASCII is one of the oldest and most widely used character encoding schemes. It uses 7 bits to represent 128 different characters, including:

  • Uppercase letters: A-Z (65-90 in decimal)
  • Lowercase letters: a-z (97-122 in decimal)
  • Digits: 0-9 (48-57 in decimal)
  • Punctuation marks and special symbols (32-47, 58-64, 91-96, 123-126 in decimal)
  • Control characters (0-31 in decimal)

Example: Representing 'A' and '1' in ASCII

  • The ASCII code for 'A' is 65, which is 01000001 in binary.
  • The ASCII code for '1' is 49, which is 00110001 in binary.


EBCDIC (Extended Binary Coded Decimal Interchange Code)

EBCDIC is an 8-bit character encoding scheme used primarily on IBM mainframe and midrange systems. It represents 256 different characters and includes support for alphabetic, numeric, punctuation, and control characters. Although less common than ASCII, EBCDIC is still used in some legacy systems.

Example: Representing 'A' and '1' in EBCDIC

  • The EBCDIC code for 'A' is 193, which is 11000001 in binary.
  • The EBCDIC code for '1' is 241, which is 11110001 in binary.


Unicode

Unicode is a comprehensive character encoding standard that aims to support all characters from all writing systems in the world. It uses a variable-length encoding, allowing it to represent over a million different characters. Unicode has several encoding forms, including:

  • UTF-8: Uses 1 to 4 bytes per character, compatible with ASCII.
  • UTF-16: Uses 2 or 4 bytes per character.
  • UTF-32: Uses 4 bytes per character.

Example: Representing 'A' and '1' in UTF-8

  • The UTF-8 code for 'A' is the same as ASCII: 01000001 in binary.
  • The UTF-8 code for '1' is the same as ASCII: 00110001 in binary.

Unicode's vast range makes it suitable for global text representation, including scripts, symbols, and emoji.

Report an issue

Reporting: Alphanumeric Representation (topic)

Related Posts