This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

assembly code helping

can help me to find an assembly code for this :

V - Communication:
In our project we are proposing to use the CRC for the detection of errors and use an LFSR
based random number generator to generate random bit errors and simulate the transmission
channel.
Figure 5: Diagram of the Communication System


Two computers are linked through the RS-232 serial link and exchange data frames. The
source computer generates frames as shown
Figure 6: Proposed Frame Format


The frame has 4 fields; the first field called the preamble has a length of 2 bytes and is used
to mark the beginning of the frame. The preamble has the unique following bit pattern:
Preamble: 01111111 11111110 = (7FFEh)


The length field is one byte only and indicates the length of the data field in bytes. Always
assume a k bytes data field. The number k should not exceed 127. The data field is the data
that is effectively exchanged between the two computers.



The FCS field is the sequence computed after CRC computation (Figs. 2, 3). The sequence is
simply appended to the end of the data field. At the receiver, error checking is performed by
dividing the received data frame appended with the FCS field by the same polynomial
generator used at the transmitter. If the final result in the shift register is zero than no error is
assumed, otherwise an error is reported

0