1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Fixes CRC generator used to verify Acorn programs.

This commit is contained in:
Thomas Harte 2018-07-10 20:01:31 -04:00
parent a0f817108e
commit e8f847d288
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ namespace {
const int PLLClockRate = 1920000;
}
Parser::Parser() {
Parser::Parser(): crc_(0x1021) {
shifter_.set_delegate(this);
}

View File

@ -63,7 +63,7 @@ class Parser: public Storage::Tape::Parser<SymbolType>, public Shifter::Delegate
private:
bool did_update_shifter(int new_value, int length);
CRC::CCITT crc_;
CRC::Generator<uint16_t, 0x0000, 0x0000, false, false> crc_;
Shifter shifter_;
};