Displaying ??? when we don't know what we read on the bus's debugger

This commit is contained in:
Anonymus Raccoon
2020-04-05 17:08:37 +02:00
parent 63d4ac94ab
commit d6bf2e1b56
3 changed files with 9 additions and 8 deletions

View File

@@ -15,12 +15,12 @@ namespace ComSquare::Debugger
{
//! @brief The struct used to represent memory bus logs.
struct BusLog {
BusLog(bool write, uint24_t addr, std::shared_ptr<Memory::AMemory> &accessor, uint8_t oldData, uint8_t newData);
BusLog(bool write, uint24_t addr, std::shared_ptr<Memory::AMemory> &accessor, std::optional<uint8_t> oldData, uint8_t newData);
bool write;
uint24_t addr;
std::shared_ptr<Memory::AMemory> accessor;
uint8_t oldData;
std::optional<uint8_t> oldData;
uint8_t newData;
};