X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mappers%2F212.c;h=e5677b6edbc747e90362b90849ada6719adc7e6a;hb=e2d0dd92bfad989cce4270fc0ac5a712476c7c50;hp=b069fc3f2357bed16ebdabd123b9d95fd458b949;hpb=971a1d07d2f5b5a6f991ed5712275c04b933734f;p=fceu.git diff --git a/mappers/212.c b/mappers/212.c index b069fc3..e5677b6 100644 --- a/mappers/212.c +++ b/mappers/212.c @@ -1,23 +1,23 @@ -#include "mapinc.h" - -static DECLFW(Mapper212_write) -{ - if((A&0x4000)==0x4000) - { - ROM_BANK32((A&6)>>1); - } - else - { - ROM_BANK16(0x8000,A&7); - ROM_BANK16(0xc000,A&7); - } - VROM_BANK8(A&7); - MIRROR_SET((A>>3)&1); -} - -void Mapper212_init(void) -{ - ROM_BANK32(~0); - VROM_BANK8(~0); - SetWriteHandler(0x8000,0xFFFF,Mapper212_write); -} +#include "mapinc.h" + +static DECLFW(Mapper212_write) +{ + if((A&0x4000)==0x4000) + { + ROM_BANK32((A&6)>>1); + } + else + { + ROM_BANK16(0x8000,A&7); + ROM_BANK16(0xc000,A&7); + } + VROM_BANK8(A&7); + MIRROR_SET((A>>3)&1); +} + +void Mapper212_init(void) +{ + ROM_BANK32(~0); + VROM_BANK8(~0); + SetWriteHandler(0x8000,0xFFFF,Mapper212_write); +}