1#pragma once
2#include "mapper.hpp"
3
4
5class Mapper2 : public Mapper
6{
7 u8 regs[1];
8 bool vertical_mirroring;
9
10 void apply();
11
12 public:
13 Mapper2(u8* rom) : Mapper(rom)
14 {
15 regs[0] = 0;
16 vertical_mirroring = rom[6] & 0x01;
17 apply();
18 }
19
20 u8 write(u16 addr, u8 v);
21 u8 chr_write(u16 addr, u8 v);
22};
23