#include <MemoryShadow.hpp>
◆ MemoryShadow()
Create a shadow for the memory given as parameter.
◆ createShadow()
◆ read()
| uint8_t ComSquare::Memory::MemoryShadow::read |
( |
uint24_t |
addr | ) |
|
|
overridevirtual |
Read from the initial IMemory given.
- Parameters
-
| addr | The address to read from. The address 0x0 should refer to the first byte of the initial IMemory. |
- Exceptions
-
- Returns
- Return the data at the address.
Implements ComSquare::Memory::IMemory.
◆ write()
| void ComSquare::Memory::MemoryShadow::write |
( |
uint24_t |
addr, |
|
|
uint8_t |
data |
|
) |
| |
|
overridevirtual |
Write data to the ram.
- Parameters
-
| addr | The address to write to. The address 0x0 should refer to the first byte of the initial IMemory. |
| data | The data to write. |
- Exceptions
-
Implements ComSquare::Memory::IMemory.
◆ _initial
| std::shared_ptr<IMemory> ComSquare::Memory::MemoryShadow::_initial |
|
private |
The documentation for this class was generated from the following files: