SimpleNES/include/MapperColorDreams.h
Amish K. Naidu eec6d79cd0 wip
2022-08-21 20:39:36 +05:30

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