virtual IMemory * getAccessor(uint24_t addr)=0
Helper function to get the components that is responsible of read/write at an address.
virtual uint8_t read(uint24_t addr)=0
Read data at a global address. This form allow read to be silenced.
unsigned uint24_t
Definition: Ints.hpp:10
Common interface implemented by all components mapping memory.
Definition: IMemory.hpp:17
virtual ~IMemoryBus()=default
A virtual default destructor.
virtual uint8_t peek_v(uint24_t addr)=0
This as the same purpose as a read but it does not change the open bus and won't throw an exception.
The memory bus is the component responsible of mapping addresses to components address and transmitti...
Definition: IMemoryBus.hpp:19
virtual void write(uint24_t addr, uint8_t data)=0
Write a data to a global address.
virtual std::optional< uint8_t > peek(uint24_t addr)=0
This as the same purpose as a read but it does not change the open bus and won't throw an exception.