uint24_t getRelativeAddress(uint24_t addr) const override
Translate an absolute address to a relative address.
Definition: AMemory.cpp:9
~AMemory() override=default
A default destructor.
uint24_t _start
The starting address mapped to this component.
Definition: AMemory.hpp:21
unsigned uint24_t
Definition: Ints.hpp:10
Common interface implemented by all components mapping memory.
Definition: IMemory.hpp:17
uint24_t _end
The last continuous address mapped to this components. For shadows, see the MemoryShadow class.
Definition: AMemory.hpp:23
Abstract class representing a continuous block of memory.
Definition: AMemory.hpp:18
bool hasMemoryAt(uint24_t addr) const override
Return true if this component has mapped the address.
Definition: AMemory.cpp:20
Definition: AMemory.cpp:7
void setMemoryRegion(uint24_t start, uint24_t end)
Change starting and ending points of this mapped memory.
Definition: AMemory.cpp:14