mirror of
https://github.com/amhndu/SimpleNES.git
synced 2024-06-12 01:16:57 -04:00
27 lines
611 B
C++
27 lines
611 B
C++
#include"Mapper.h"
|
|
|
|
namespace sn
|
|
{
|
|
class MapperGxROM : public Mapper
|
|
{
|
|
public:
|
|
MapperGxROM(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);
|
|
Byte prgbank;
|
|
Byte chrbank;
|
|
|
|
|
|
private:
|
|
NameTableMirroring m_mirroring;
|
|
|
|
std::vector<Byte> m_characterRAM;
|
|
std::function<void(void)> m_mirroringCallback;
|
|
|
|
};
|
|
}
|