mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-16 05:27:43 +00:00
Fixes CRC generator used to verify Acorn programs.
This commit is contained in:
@@ -14,7 +14,7 @@ namespace {
|
|||||||
const int PLLClockRate = 1920000;
|
const int PLLClockRate = 1920000;
|
||||||
}
|
}
|
||||||
|
|
||||||
Parser::Parser() {
|
Parser::Parser(): crc_(0x1021) {
|
||||||
shifter_.set_delegate(this);
|
shifter_.set_delegate(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -63,7 +63,7 @@ class Parser: public Storage::Tape::Parser<SymbolType>, public Shifter::Delegate
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
bool did_update_shifter(int new_value, int length);
|
bool did_update_shifter(int new_value, int length);
|
||||||
CRC::CCITT crc_;
|
CRC::Generator<uint16_t, 0x0000, 0x0000, false, false> crc_;
|
||||||
Shifter shifter_;
|
Shifter shifter_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user