Component Description Leader 256 Bytes (of All 1 's) Sync Bit One 0 bit Sync Byte ASCII Character hex 16 Data Blocks 256 Bytes in Length CRC 2 Bytes for each Data Block Data Record Components Error Detection Error detection is handled through software. A eRe is used to detect errors. The polynomial used is G(X) = X16 + X12 + X5 + 1, which is the polynomial used by the synchronous data link: control interface. Essentially, as bits are I written I to or I read I from the cassette tape they are passed through the eRe register in software. After a block of data is I written I , the complemented value of the calculated eRe register is I written I on the tape.
Upon reading the cassette data, the eRe bytes are I read I and I compared I to the generated eRe value. If the read eRe does not equal the generated eRe, the processor's carry flag is I set I and the status of AH is I set I to hex 01, which indicates a eRe error has occurred. Also, the routine is exited on a eRe error. BIOS Cassette Logic 5-51