mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-03-14 10:16:21 +00:00
Start adding comparison operations to EightBit classes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user