Go to the documentation of this file.
47 [[nodiscard]] std::string
getName()
const override;
IMemory & _initial
Memory to shadow from.
Definition: MemoryShadow.hpp:16
uint8_t read(uint24_t addr) override
Read from the initial AMemory given.
Definition: MemoryShadow.cpp:15
Definition: MemoryShadow.hpp:12
Component
Definition: Components.hpp:9
void write(uint24_t addr, uint8_t data) override
Write data to the ram.
Definition: MemoryShadow.cpp:20
IMemory & getMirrored() const
Return the memory accessor this accessor mirror if any.
Definition: MemoryShadow.cpp:30
Component getComponent() const override
Get the component of this accessor (used for debug purpose)
Definition: MemoryShadow.cpp:40
std::string getName() const override
Get the name of this accessor (used for debug purpose)
Definition: MemoryShadow.cpp:35
uint24_t getSize() const override
Get the size of the data. This size can be lower than the mapped data.
Definition: MemoryShadow.cpp:25
unsigned uint24_t
Definition: Ints.hpp:10
Common interface implemented by all components mapping memory.
Definition: IMemory.hpp:17
~MemoryShadow() override=default
A default destructor.
std::string getValueName(uint24_t addr) const override
Get the name of the data at the address.
Definition: MemoryShadow.cpp:45
Abstract class representing a continuous block of memory.
Definition: AMemory.hpp:18
MemoryShadow(IMemory &initial, uint24_t start, uint24_t end)
Create a shadow for the memory given as parameter.
Definition: MemoryShadow.cpp:9
Definition: AMemory.cpp:7
MemoryShadow & operator=(const MemoryShadow &)=delete
A memory shadow is not assignable.