Reworking the instruction history

This commit is contained in:
Anonymus Raccoon
2020-04-04 23:17:31 +02:00
parent 84f964111c
commit 218935b5bb
8 changed files with 252 additions and 118 deletions
+6 -4
View File
@@ -22,20 +22,22 @@ namespace ComSquare
//! @brief The list of components registered inside the bus. Every components that can read/write to a public address should be in this vector.
std::vector<std::shared_ptr<AMemory>> _memoryAccessors;
//! @brief The last value read via the memory bus.
uint8_t _openBus = 0;
//! @brief WRam, CPU, PPU & APU registers are mirrored to all banks of Q1 & Q3. This function is used for the mirroring.
//! @param console All the components.
//! @param i Base address for the mirrors.
void _mirrorComponents(SNES &console, unsigned i);
protected:
//! @brief The last value read via the memory bus.
uint8_t _openBus = 0;
public:
MemoryBus() = default;
MemoryBus(const MemoryBus &) = default;
MemoryBus &operator=(const MemoryBus &) = default;
~MemoryBus() = default;
//! @brief Force silencing read to the bus.
bool forceSilence = false;
//! @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.