Copy constructor and equality operations added.

This commit is contained in:
Adrian Conlon
2021-12-27 22:07:30 +00:00
parent 945fcefb36
commit 1f5dc54c40
13 changed files with 95 additions and 13 deletions

View File

@@ -5,6 +5,14 @@ EightBit::Processor::Processor(Bus& bus) noexcept
: m_bus(bus) {
}
EightBit::Processor::Processor(const Processor& rhs)
: ClockedChip(rhs),
m_bus(rhs.m_bus) {
RESET() = rhs.RESET();
INT() = rhs.INT();
PC() = rhs.PC();
}
DEFINE_PIN_LEVEL_CHANGERS(RESET, Processor);
DEFINE_PIN_LEVEL_CHANGERS(INT, Processor);