Skip to content

Representing Non-Numbers in Binary

Using bits to represent useful non-numeric data

Key Concepts

Numbers are used to represent lettersASCII provides a standard way to map numbers to alphanumeric values, as well as punctuation and special characters
Computer architectures are number basedTo present ASCII (or UniCode) characters, the architecture and the assembly program must manage the numbers they intended to represent characters
Terms
TermMeaning
BinaryBase 2 numbers.
DecimalBase 10 numbers.
Hex or HexadecimalBase 16 numbers.
Place or Place ValueValue of a single number in multi-symbol value. Example: In the number 12345, the Place Value if the 3 is 300.
SignedNumbers that represent negative, zero, and positive values.
SymbolsWritten characters used to depict numbers. Symbols represent to represent Decimal are 0,1,2,3,4,5,6,7,8,9.
UnsignedNumbers that represent only zero and positive values.

Introduction

ASCII

The American Standard Code for Information Interchange (ASCII) standard defines printable and non-printable text characters for telecommunication equipment. The standard was initiated in the early 1960s to define how digital equipment could consistently communicate information, primarily for human consumption.

ASCII overview

This standard defines 8-bit strings used to transmit text characters between systems. ASCII values 32 - 126 are the printable characters

The standard include some control standards used to send configuration or command actions to the receiving equipment.

Examples ASCII value 7 is the BEL command. When sent to another system, such as a printer, it would cause the receiving device to sounds an audible alarm to notify the operator of something, such as print job is done

ASCII values 0 - 31 & 127 are commands.

ASCII Table

ASCII Table CC Attribution-ShareAlike License 3.0. Wikimedia Foundation, Inc., a non-profit organization.

Unicode

ASCII is limited to english characters and punctuation characters. In addition, as communication between devices changed with networks, the simple command character were no longer needed. In the late 1980s Xerox and Apple engineers began on a standard to represent characters and languages from around the world.

As of Unicode version 14.0, September 2021, the standard represents 159 different scripts or character sets and 144,697 individual characters.

Unicode

Wikipedia

Conclusion

Computer architectures can convert numbers to characters when instructed by the assembly program. The architecture does not store actual characters, but numbers that refer to characters on the ASCII or UniCode standard.

Assembly programmers must be aware of how an architecture converts between numbers and characters to ensure it is performed when required by the program.

The contents of this E-Text were developed under an Open Textbooks Pilot grant from the Fund for the Improvement of Postsecondary Education (FIPSE), U.S. Department of Education. However, those contents do not necessarily represent the policy of the Department of Education, and you should not assume endorsement by the Federal Government.
Released under Creative Commons BY NC 4.0 International License