F$CRC
From NitrOS-9
CRC | Calculates the CRC of a modle |
OS9 F$CRC 103F 17 |
Entry Conditions
X starting byte address
Y number of bytes
U address of the 3-byte CRC accumulator
Exit Conditions
Updates the CRC accumulator.
Additional Information
- The CRC call calculates the CRC (cyclic redundancy count) for use by compilers, assemblers, or other module generators.
- The calculation begins at the starting byte address and continues over the specified number of bytes.
- You need not cover an entire module in one call since the CRC can be accumulated over several calls. The CRC accumulator can be any 3-byte memory area. You must initialize it to $FFFFFF before the first CRC call.
- The updated accumulator does not include the last three bytes of the module. The three CRC bytes are stored there.
- Be sure to initialize the CRC accumulator only once for each module check by CRC.
krn