mirror of
https://github.com/amhndu/SimpleNES.git
synced 2025-04-02 10:21:43 -04:00
24 lines
531 B
C++
24 lines
531 B
C++
#ifndef MAPPERNROM_H
|
|
#define MAPPERNROM_H
|
|
#include "Mapper.h"
|
|
|
|
namespace sn
|
|
{
|
|
class MapperNROM : public Mapper
|
|
{
|
|
public:
|
|
MapperNROM(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;
|
|
bool m_usesCharacterRAM;
|
|
|
|
std::vector<Byte> m_characterRAM;
|
|
|
|
};
|
|
}
|
|
#endif // MAPPERNROM_H
|