mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-03-12 10:41:58 +00:00
Start adding comparison operations to EightBit classes
This commit is contained in:
@@ -98,3 +98,11 @@ void EightBit::Processor::call(const register16_t destination) {
|
||||
void EightBit::Processor::ret() {
|
||||
jump(popWord());
|
||||
}
|
||||
|
||||
bool EightBit::Processor::operator==(const EightBit::Processor& rhs) const {
|
||||
return
|
||||
ClockedChip::operator==(rhs)
|
||||
&& RESET() == rhs.RESET()
|
||||
&& INT() == rhs.INT()
|
||||
&& PC() == rhs.PC();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user