In: Computer Science
Compute the check sum for each of the following
data.
a.
0x1243
0xFFE0
b.
0xFF34
0xEFD0
0X3210
0xEDFE
Checksum is an error detection method
To Find Checksum value :
1)we add all the given segments then we get result .if any carry is generated from result after addition it must be added back to result to get final sum
2)result of the sum is complemented using 1's complement arithmetic
a)
0x1243 in Binary:
0xFFE0 in Binary:
ADD BOTH BINARY NUMBERS(0x1243+0xFFE0):
so the carry of 1 should be added to resultThere is a carry of 1
generated from a most significant bit.
Final sum=0001001000100100
to get Checkum value Final sum is complemented
1's complement of Final sum=
Cheksum value =
b)
0xFF34 in Binary:
0xEFD0 in Binary:
0x3210 in Binary:
0xEDFE in Binary:
ADDING FIRST TWO BINARY NUMBERS(0xFF34+0xEFD0 ):
so the carry of 1 should be added to result.There is a carry of 1
generated from a most significant bit.
Add the sum with ox3210
There is a carry of 1 generated from a most significant bit.
so the carry of 1 should be added to result
Add the sum with 0xEDFE
There is a carry of 1 generated from a most significant bit.
so the carry of 1 should be added to result
Fianl sum=0000111100010101
to get Checkum value Final sum is complemented
1's complement of Final sum=
Cheksum value =