mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-29 17:02:21 +00:00
Making the CPU debugger's bus read silent
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user