CRC generation functions are provided in the libraries

LIB/crc_lib.bas


 
CRC_mem Generate a 16 bit CRC of a block of RAM
CRC_byte Generate a 16 bit CRC of a byte (partial CRC of a data stream)