Cleaning up all debuggers

This commit is contained in:
Anonymus Raccoon
2020-03-23 23:07:15 +01:00
parent 75f9ffad8e
commit 09cd825bed
19 changed files with 266 additions and 105 deletions
+5
View File
@@ -18,6 +18,11 @@ namespace ComSquare::CPU
this->RESB();
}
bool CPU::isDebugger()
{
return false;
}
void CPU::setMemoryBus(std::shared_ptr<Memory::MemoryBus> bus)
{
this->_bus = std::move(bus);
+3
View File
@@ -573,6 +573,9 @@ namespace ComSquare::CPU
//! @brief Reset interrupt - Called on boot and when the reset button is pressed.
virtual void RESB();
//! @brief Return true if the CPU is overloaded with debugging features.
virtual bool isDebugger();
//! @brief Change the memory bus used by the CPU.
void setMemoryBus(std::shared_ptr<Memory::MemoryBus> bus);
};