Write an assembly language program that prompts the user for a hamming (8,4) encoded string (more on
this at the Wikipedia link here) as follows:
Input Data: 00100110
The encoded string is expected to be a sequence of 1s and 0s and the user is expected to input them as
ASCII characters. The assembly program must then proceed to check for the validity of user input. This
routine that performs validity checks is provided with the sample skeleton code. Once the validity check
is performed, the program must proceed to determine if the user input has a single bit error. If a single bit
error exists, then its respective bit position must be detected, and the program must print out the bit
position where the error has occurred. Further, if a single bit error has been detected, your program must
correct the error and the correct binary sequence must be printed out as a sequence of ASCII characters.
You can make use of the ASCII to binary conversion routine provided in the skeletal code, as a reference
to perform the operation in reverse. Appropriate placeholders to store information about the position and
final corrected sequence is provided in the .bss section of skeletal code.
The encoding format for user input is provided below for reference:
Bit Position 7 6 5 4 3 2 1 0
Bit Order P4 D4 D3 D2 P3 D1 P2 P1
Data bits are embedded in the encoded sequence and is specified by D4, D3, D2, and D1 in the above
format. Parity bits are specified by P4, P3, P2, and P1. Hence for the example above (00100110), the data
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more