X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=mappers%2F82.c;h=b4288b1f0aba7126d4a72ae547be19e21802117e;hp=a4f643e67f6b44ce420e7f0a5a8517192170366e;hb=d97315ac0bca825d2d50a44453bc5652946e2c67;hpb=890e37ba2b8ea1c7593dc05926d7431e3bd00bfb diff --git a/mappers/82.c b/mappers/82.c index a4f643e..b4288b1 100644 --- a/mappers/82.c +++ b/mappers/82.c @@ -1,7 +1,7 @@ /* FCE Ultra - NES/Famicom Emulator * * Copyright notice for this file: - * Copyright (C) 2002 Ben Parnell + * Copyright (C) 2002 Xodnizel * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,7 +20,7 @@ #include "mapinc.h" -#define ctrl mapbyte1[6] +#define ctrl mapbyte1[6] static void DoCHR(void) { @@ -43,15 +43,12 @@ static DECLFW(Mapper82_write) switch(A) { case 0x7ef6:ctrl=V&3; - MIRROR_SET2(V&1); - DoCHR(); - break; - case 0x7efa:V>>=2;mapbyte2[0]=V;ROM_BANK8(0x8000,V); - X6502_Rebase();break; - case 0x7efb:V>>=2;mapbyte2[1]=V;ROM_BANK8(0xa000,V); - X6502_Rebase();break; - case 0x7efc:V>>=2;mapbyte2[2]=V;ROM_BANK8(0xc000,V); - X6502_Rebase();break; + MIRROR_SET2(V&1); + DoCHR(); + break; + case 0x7efa:V>>=2;mapbyte2[0]=V;ROM_BANK8(0x8000,V);break; + case 0x7efb:V>>=2;mapbyte2[1]=V;ROM_BANK8(0xa000,V);break; + case 0x7efc:V>>=2;mapbyte2[2]=V;ROM_BANK8(0xc000,V);break; } }