Start adding comparison operations to EightBit classes

This commit is contained in:
Adrian Conlon
2021-12-27 14:24:38 +00:00
parent af7679505c
commit 945fcefb36
16 changed files with 154 additions and 34 deletions

View File

@@ -14,3 +14,9 @@ void EightBit::ClockedChip::tick() {
void EightBit::ClockedChip::resetCycles() noexcept {
m_cycles = 0;
}
bool EightBit::ClockedChip::operator==(const EightBit::ClockedChip& rhs) const {
return
Device::operator==(rhs)
&& cycles() == rhs.cycles();
}