ASCII Character Set and Ansi.

sys

SCII (American Standard Code for Information Interchange) is a coding system used by personal computers to store character data, such as letters of the alphabet, numerals, some symbols, and certain control characters. There are 128 characters defined by the standard ASCII character set. Each ASCII character is assigned an 8-bit code that converts to a decimal number from 0 to 127, although in the standard set, the first bit is always 0. The first 31 values, which are nonprintable codes, are for control characters used to send commands to printers or other peripheral devices. Files that store data as ASCII characters are sometimes called ASCII files, ASCII text files, or simply text files. ASCII can be read by most text editors and word processors and is considered the universal file format for personal computers. Autoexec.bat is one example of an ASCII file. In addition to the standard ASCII character set, some manufacturers use an extended ASCII character set that is specific to their equipment and is not necessarily compatible with other computers. The extended ASCII character sets use the codes 128 through 255. The American National Standards Institute (ANSI), an organization responsible for many computer standards, developed an extended character set using codes 128 through 255 that includes special characters such as letters in an international alphabet and accents, currency symbols, and fractions. ANSI has also defined a series of control codes that can be used to control monitors. For exampl e, a sequence of control codes can clear a monitor, cause characters to be displayed upside down, or put color on a DOS screen. Ansi.sys is a device driver that, when loaded in a DOS environment, provides these monitor and keyboard functions. Ansi.sys is loaded from the Config.sys file with this command: Device=C:\DOS\Ansi.sys Some DOS programs need Ansi.sys loaded in order to interpret the extended character set entered from the keyboard, display these characters on the screen, and control the monitor in other ways. Table B-1 lists the standard ASCII character set. Note that items 2 through 32, the control characters, and the extended ASCII character set are not included.

A

1101

.sys Item Number Symbol Meaning ASCII in Decimal Representation 0 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 ASCII in Binary Representation 0000 0000 0010 0000 0010 0001 0010 0010 0010 0011 0010 0100 0010 0101 0010 0110 0010 0111 0010 1000 0010 1001 0010 1010 0010 1011 0010 1100 0010 1101 0010 1110 ASCII in Hex Representation 1 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 . decimal point Slant 0 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 48 49 50 51 52 53 54 / 0 1 2 3 4 5 47 48 49 50 51 52 53 0010 1111 0011 0000 0011 0001 0011 0010 0011 0011 0011 0100 0011 0101 2F 30 31 32 33 34 35 Table B-1 (continued) . b/ ! “ # $ % & ’ ( ) * + .1102 Appendix B ASCII Character Set and Ansi. Null Space Exclamation point Quotation mark Number sign Dollar sign Percent sign Ampersand Apostrophe. minus sign Period. prime sign Opening parenthesis Closing parenthesis Asterisk Plus sign Comma Hyphen.

< = > ? @ A B C D E F G H I J K L M N O Colon Semicolon Less than sign Equals sign Greater than sign Question mark Commercial at sign 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F Table B-1 (continued) 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 .Appendix B 1103 Item Number Symbol Meaning ASCII in Decimal Representation 54 55 56 57 ASCII in Binary Representation 0011 0110 0011 0111 0011 1000 0011 1001 0011 1010 0011 1011 0011 1100 0011 1101 0011 1110 0011 1111 0100 0000 0100 0001 0100 0010 0100 0011 0100 0100 0100 0101 0100 0110 0100 0111 0100 1000 0100 1001 0100 1010 0100 1011 0100 1100 0100 1101 0100 1110 0100 1111 ASCII in Hex Representation 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 6 7 8 9 : .

1104 Appendix B ASCII Character Set and Ansi.sys Item Number Symbol Meaning ASCII in Decimal Representation 80 81 82 83 84 85 86 87 88 89 90 ASCII in Binary Representation 0101 0000 0101 0001 0101 0010 0101 0011 0101 0100 0101 0101 0101 0110 0101 0111 0101 1000 0101 1001 0101 1010 0101 1011 0101 1100 0101 1101 0101 1110 0101 1111 0110 0000 0110 0001 0110 0010 0110 0011 0110 0100 0110 0101 0110 0110 0110 0111 0110 1000 0110 1001 ASCII in Hex Representation 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i Opening bracket Reverse slant Closing bracket Caret Underscore Acute accent 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 Table B-1 (continued) 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 .

Appendix B 1105 Item Number Symbol Meaning ASCII in Decimal Representation 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 ASCII in Binary Representation 0110 1010 0110 1011 0110 1100 0110 1101 0110 1110 0110 1111 0111 0000 0111 0001 0111 0010 0111 0011 0111 0100 0111 0101 0111 0110 0111 0111 0111 1000 0111 1001 0111 1010 0111 1011 0111 1100 0111 1101 0111 1110 0111 1111 ASCII in Hex Representation 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 j k l m n o p q r s t u v w x y z { | } ~ Δ 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F Opening brace Split vertical bar Closing brace Tilde Small triangle 123 124 125 126 127 Table B-1 Standard ASCII character set .

Sign up to vote on this title
UsefulNot useful