mirror of
https://github.com/amhndu/SimpleNES.git
synced 2025-04-02 10:21:43 -04:00
27 lines
702 B
C++
27 lines
702 B
C++
#ifndef MAPPERCOLORDREAMS_H_INCLUDED
|
|
#define MAPPERCOLORDREAMS_H_INCLUDED
|
|
|
|
#include "Mapper.h"
|
|
|
|
namespace sn
|
|
{
|
|
class MapperColorDreams : public Mapper
|
|
{
|
|
public:
|
|
MapperColorDreams(Cartridge &cart, std::function<void(void)> mirroring_cb);
|
|
NameTableMirroring getNameTableMirroring();
|
|
void writePRG(Address address, Byte value);
|
|
Byte readPRG(Address address);
|
|
|
|
Byte readCHR(Address address);
|
|
void writeCHR(Address address, Byte value);
|
|
|
|
private:
|
|
NameTableMirroring m_mirroring;
|
|
uint32_t prgbank;
|
|
uint32_t chrbank;
|
|
std::function<void(void)> m_mirroringCallback;
|
|
};
|
|
}
|
|
|
|
#endif // MAPPERCOLORDREAMS_H_INCLUDED
|