virtual ~IMemory()=default
A virtual default destructor.
Component
Definition: Components.hpp:9
virtual uint8_t read(uint24_t addr)=0
Read data from the component.
unsigned uint24_t
Definition: Ints.hpp:10
Common interface implemented by all components mapping memory.
Definition: IMemory.hpp:17
virtual uint24_t getSize() const =0
Get the size of the data. This size can be lower than the mapped data.
virtual std::string getName() const =0
Get the name of this accessor (used for debug purpose)
virtual Component getComponent() const =0
Get the component of this accessor (used for debug purpose)
virtual uint24_t getRelativeAddress(uint24_t addr) const =0
Translate an absolute address to a relative address.
Definition: AMemory.cpp:7
virtual std::string getValueName(uint24_t addr) const =0
Get the name of the data at the address.
virtual void write(uint24_t addr, uint8_t data)=0
Write data to this component.
virtual bool hasMemoryAt(uint24_t addr) const =0
Return true if this component has mapped the address.