• Home
  • Blog
  • Montgomery College Hardware Coding with A 32 Bit Registers Project

Montgomery College Hardware Coding with A 32 Bit Registers Project

0 comments

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:
Encoding format:
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

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}