Go to the documentation of this file.
5 #ifndef COMSQUARE_MEMORYSHADOW_HPP
6 #define COMSQUARE_MEMORYSHADOW_HPP
35 #endif //COMSQUARE_MEMORYSHADOW_HPP
uint8_t read(uint24_t addr) override
Read from the initial IMemory given.
Definition: MemoryShadow.cpp:22
Definition: MemoryShadow.hpp:13
void write(uint24_t addr, uint8_t data) override
Write data to the ram.
Definition: MemoryShadow.cpp:27
static std::shared_ptr< IMemory > createShadow(std::shared_ptr< IMemory > initial, uint24_t start, uint24_t end)
Definition: MemoryShadow.cpp:17
std::shared_ptr< IMemory > _initial
Memory to shadow from.
Definition: MemoryShadow.hpp:16
unsigned uint24_t
Definition: Ints.hpp:8
Common interface implemented by all components mapping memory.
Definition: IMemory.hpp:16
Definition: IMemory.cpp:8
MemoryShadow(std::shared_ptr< IMemory > initial, uint24_t start, uint24_t end)
Create a shadow for the memory given as parameter.
Definition: MemoryShadow.cpp:11