Go to the documentation of this file.
5 #ifndef COMSQUARE_IMEMORY_HPP
6 #define COMSQUARE_IMEMORY_HPP
11 #include "../Models/Ints.hpp"
49 #endif //COMSQUARE_IMEMORY_HPP
uint24_t _end
The last continuous address mapped to this components. For shadows, see the MemoryShadow class.
Definition: IMemory.hpp:21
virtual uint8_t read(uint24_t addr)=0
Read data from the component.
unsigned uint24_t
Definition: Ints.hpp:8
Common interface implemented by all components mapping memory.
Definition: IMemory.hpp:16
virtual uint24_t getStart()
Get the first address mapped to this component.
Definition: IMemory.cpp:21
void setMemoryRegion(uint24_t start, uint24_t end)
Change starting and ending points of this mapped memory.
Definition: IMemory.cpp:10
uint24_t _start
The starting address mapped to this component.
Definition: IMemory.hpp:19
Definition: IMemory.cpp:8
virtual bool hasMemoryAt(uint24_t addr)
Return true if this component has mapped the address.
Definition: IMemory.cpp:16
virtual void write(uint24_t addr, uint8_t data)=0
Write data to this component.