notaz.gp2x.de
/
fceu.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
e5677b6edbc747e90362b90849ada6719adc7e6a
[fceu.git]
/
mappers
/
212.c
1
#include "mapinc.h"
2
3
static DECLFW(Mapper212_write)
4
{
5
if((A&0x4000)==0x4000)
6
{
7
ROM_BANK32((A&6)>>1);
8
}
9
else
10
{
11
ROM_BANK16(0x8000,A&7);
12
ROM_BANK16(0xc000,A&7);
13
}
14
VROM_BANK8(A&7);
15
MIRROR_SET((A>>3)&1);
16
}
17
18
void Mapper212_init(void)
19
{
20
ROM_BANK32(~0);
21
VROM_BANK8(~0);
22
SetWriteHandler(0x8000,0xFFFF,Mapper212_write);
23
}