Professional Documents
Culture Documents
Convert Yeshimebet Tilahun To BCD 4 Bits
Convert Yeshimebet Tilahun To BCD 4 Bits
To convert the name "Yeshimebet Tilahun" to BCD (Binary-Coded Decimal) using 4 bits for each
character, we need to represent each character in the name as its ASCII value in binary, and then
encode each digit of the ASCII value using BCD.
Y: 89 e: 101 s: 115 h: 104 i: 105 m: 109 e: 101 b: 98 e: 101 t: 116 T: 84 i: 105 l: 108 a: 97 h: 104 u: 117
n: 110
Y: 1001 1001 e: 1100 0101 s: 1111 0011 h: 1101 1000 i: 1101 1001 m: 1101 1101 e: 1100 0101 b: 1100
0010 e: 1100 0101 t: 1110 0100 T: 0101 0100 i: 1101 1001 l: 1101 1100 a: 1100 0001 h: 1101 1000 u:
1110 0101 n: 1101 1110
Y: 1001 1001 → 1001 1001 e: 1100 0101 → 0001 0000 0000 0101 s: 1111 0011 → 0001 0000 0001
0011 h: 1101 1000 → 0001 0000 0001 1000 i: 1101 1001 → 0001 0000 0001 1001 m: 1101 1101 →
0001 0000 0001 1101 e: 1100 0101 → 0001 0000 0000 0101 b: 1100 0010 → 0001 0000 0000 0010 e:
1100 0101 → 0001 0000 0000 0101 t: 1110 0100 → 0001 0000 0001 0100 T: 0101 0100 → 0000 0101
0000 0100 i: 1101 1001 → 0001 0000 0001 1001 l: 1101 1100 → 0001 0000 0001 1100 a: 1100 0001 →
0001 0000 0000 0001 h: 1101 1000 → 0001 0000 0001 1000 u: 1110 0101 → 0001 0000 0001 0101 n:
1101 1110 → 0001 0000 0001 1110
So, the BCD representation of the name "Yeshimebet Tilahun" using 4 bits for each character is:
1001 1001 0001 0000 0000 0101 0001 0000 0001 0011 0001 0000 0001 1000 0001 0000 0001 1001
0001 0000 0001 1101 0001 0000 0000 0101 0001 0000 0000 0010 0001 0000 0000 0101 0001 0000
0001 0100 0000 0101 0000 0100 0001 0000 0001 1001 0001 0000 0001 1100 0001 0000 0000 0001
0001 0000 0001 1000 0001 0000 0001 0101 0001 0000 0001 1110
Y: 89 e: 101 s: 115 h: 104 i: 105 m: 109 e: 101 b: 98 e: 101 t: 116 T: 84 i: 105 l: 108 a: 97 h: 104 u: 117
n: 110
Y: 1011001 → 010110 010001 e: 1100101 → 011000 010001 s: 1110011 → 011100 011001 h: 1101000
→ 011010 000000 i: 1101001 → 011010 000001 m: 1101101 → 011011 000001 e: 1100101 → 011000
010001 b: 1100010 → 011000 000010 e: 1100101 → 011000 010001 t: 1110100 → 011101 001000 T:
1010100 → 010101 010000 i: 1101001 → 011010 000001 l: 1101100 → 011011 000000 a: 1100001 →
011000 000001 h: 1101000 → 011010 000000 u: 1110101 → 011101 010001 n: 1101110 → 011011
011000
So, the BCD representation of the name "Yeshimebet Tilahun" using 6 bits for each character is:
010110 010001 011000 010101 011100 011001 011010 000000 011010 000001 011011 000001
011000 010101 011000 000010 011000 010101 011101 001000 010101 010000 011010 000001
011011 000000 011000 000001 011010 000000 011101 010001 011011 011000
Y (ASCII: 89) - 8 = 81
e (ASCII: 101) - 8 = 93
s (ASCII: 115) - 8 = 107
h (ASCII: 104) - 8 = 96
i (ASCII: 105) - 8 = 97
m (ASCII: 109) - 8 = 101
e (ASCII: 101) - 8 = 93
b (ASCII: 98) - 8 = 90
e (ASCII: 101) - 8 = 93
t (ASCII: 116) - 8 = 108
T (ASCII: 84) - 8 = 76
i (ASCII: 105) - 8 = 97
l (ASCII: 108) - 8 = 100
a (ASCII: 97) - 8 = 89
h (ASCII: 104) - 8 = 96
u (ASCII: 117) - 8 = 109
n (ASCII: 110) - 8 = 102
So, the ASCII representation of the name "Yeshimebet Tilahun" with an offset of -8 is: