mirror of
https://github.com/amhndu/SimpleNES.git
synced 2025-04-02 10:21:43 -04:00
22 lines
485 B
C++
22 lines
485 B
C++
#ifndef MAPPERCNROM_H
|
|
#define MAPPERCNROM_H
|
|
#include "Mapper.h"
|
|
|
|
namespace sn
|
|
{
|
|
class MapperCNROM : public Mapper
|
|
{
|
|
public:
|
|
MapperCNROM(Cartridge& cart);
|
|
void writePRG (Address addr, Byte value);
|
|
Byte readPRG (Address addr);
|
|
|
|
Byte readCHR (Address addr);
|
|
void writeCHR (Address addr, Byte value);
|
|
private:
|
|
bool m_oneBank;
|
|
|
|
Address m_selectCHR;
|
|
};
|
|
}
|
|
#endif // MAPPERCNROM_H
|