Making the CPU debugger's bus read silent

This commit is contained in:
Anonymus Raccoon
2020-03-24 19:25:33 +01:00
parent a3c406db9d
commit 256fea8955
5 changed files with 31 additions and 30 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ namespace ComSquare::Memory
return *it;
}
uint8_t MemoryBus::read(uint24_t addr)
uint8_t MemoryBus::read(uint24_t addr, bool)
{
std::shared_ptr<AMemory> handler = this->getAccessor(addr);
+2 -1
View File
@@ -38,8 +38,9 @@ namespace ComSquare
//! @brief Read data at a global address.
//! @param addr The address to read from.
//! @param silence Disable login to the memory bus's debugger (if enabled). Should only be used by other debuggers.
//! @return The value that the component returned for this address. If the address was mapped to ram, it simply returned the value. If the address was mapped to a register the component returned the register.
virtual uint8_t read(uint24_t addr);
virtual uint8_t read(uint24_t addr, bool silence = false);
//! @brief Write a data to a global address.
//! @param addr The address to write to.