Assignment#2
Assignment#2
What is EBCDIC?
EBCDIC (Extended Binary Coded
Decimal Interchange Code) is a
character encoding set used by IBM
mainframes.
EBCDIC uses the full 8 bits available to
it, so parity checking cannot be used
on an 8 bit system. Also, EBCDIC has a
wider range of control characters than
ASCII.
The character encoding is based on
Binary Coded Decimal (BCD), so the
contiguous characters in the
alphanumeric range are formed up in
blocks of up to 10 from 0000 binary to
1001 binary. Non alphanumeric
characters are almost all outside the
BCD range.
There are four main blocks in the
EBCDIC code page: 0000 0000 to 0011
1111 is reserved for control
characters; 0100 0000 to 0111 1111
are for punctuation; 1000 0000 to
1011 1111 for lowercase characters
and 1100 0000 to 1111 1111 for
uppercase characters and numbers.
There are several different dialects of
EBCDIC, and these tend to differ in the
punctuation coding. The following
table uses some fairly common
EBCDIC codings.
Why EBCDIC is better than ASCII
EBCDIC is easier to use on punched
cards and included the "cent sign" (¢)
character that ASCII does not.
Why ASCII is better than EBCDIC
Reason 1: Writing code
EBCDIC is a mess. The lack of
contiguous character blocks makes
coding a real pain.