From e8f847d288fd07e9ebc6e7a661128255e84891df Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 10 Jul 2018 20:01:31 -0400 Subject: [PATCH] Fixes CRC generator used to verify Acorn programs. --- Storage/Tape/Parsers/Acorn.cpp | 2 +- Storage/Tape/Parsers/Acorn.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Storage/Tape/Parsers/Acorn.cpp b/Storage/Tape/Parsers/Acorn.cpp index 35a4dc79e..dc5193e7f 100644 --- a/Storage/Tape/Parsers/Acorn.cpp +++ b/Storage/Tape/Parsers/Acorn.cpp @@ -14,7 +14,7 @@ namespace { const int PLLClockRate = 1920000; } -Parser::Parser() { +Parser::Parser(): crc_(0x1021) { shifter_.set_delegate(this); } diff --git a/Storage/Tape/Parsers/Acorn.hpp b/Storage/Tape/Parsers/Acorn.hpp index b6f870674..937873b64 100644 --- a/Storage/Tape/Parsers/Acorn.hpp +++ b/Storage/Tape/Parsers/Acorn.hpp @@ -63,7 +63,7 @@ class Parser: public Storage::Tape::Parser, public Shifter::Delegate private: bool did_update_shifter(int new_value, int length); - CRC::CCITT crc_; + CRC::Generator crc_; Shifter shifter_; };