Content deleted Content added
m reverted vandalism by 202.158.108.144 |
→Basics: IBM 1401 BCD |
||
Line 11:
The following table represents [[decimal]] digits from 0 to 9 in various BCD systems:
'''NBCD''' '''BCD''' '''BCD''' '''IBM 1401'''
Digit '''8421''' '''Excess-3''' '''2421''' '''84-2-1''' '''8421'''
'''0''' 0000 0011 0000 0000 1010
'''1''' 0001 0100 0001 0111 0001
'''2''' 0010 0101 0010 0110 0010
'''3''' 0011 0110 0011 0101 0011
'''4''' 0100 0111 0100 0100 0100
'''5''' 0101 1000 1011 1011 0101
'''6''' 0110 1001 1100 1010 0110
'''7''' 0111 1010 1101 1001 0111
'''8''' 1000 1011 1110 1000 1000
'''9''' 1001 1100 1111 1111 1001
To BCD-encode a decimal number such as 127, for example, each of the decimal digits is encoded using the bit pattern shown above, that is: 0001, 0010, 0111.
|