Go to the documentation of this file.
5 #ifndef COMSQUARE_MEMORYBUS_HPP
6 #define COMSQUARE_MEMORYBUS_HPP
57 #endif //COMSQUARE_MEMORYBUS_HPP
uint8_t read(uint24_t addr)
Read data at a global address.
Definition: MemoryBus.cpp:24
The memory bus is the component responsible of mapping addresses to components address and transmitti...
Definition: MemoryBus.hpp:20
std::vector< std::shared_ptr< IMemory > > _memoryAccessors
The list of components registered inside the bus. Every components that can read/write to a public ad...
Definition: MemoryBus.hpp:23
Container of all the components of the SNES.
Definition: SNES.hpp:18
unsigned uint24_t
Definition: Ints.hpp:8
void write(uint24_t addr, uint8_t data)
Write a data to a global address.
Definition: MemoryBus.cpp:37
std::shared_ptr< IMemory > getAccessor(uint24_t addr)
Helper function to get the components that is responsible of read/write at an address.
Definition: MemoryBus.cpp:13
uint8_t _openbus
The last value read via the memory bus.
Definition: MemoryBus.hpp:31
void mapComponents(SNES &console)
Map components to the address space using the currently loaded cartridge to set the right mapping mod...
Definition: MemoryBus.cpp:56
void _mirrorComponents(SNES &console, int i)
WRam, CPU, PPU & ALU registers are mirrored to all banks of Q1 & Q3. This function is used for the mi...
Definition: MemoryBus.cpp:48