X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=mappers%2F32.c;h=13e4bba9d2939aefef74d3893ca4b4d5288e2a77;hp=fd455d26798cc5470fdcb0338c59fa0aacea9d83;hb=d97315ac0bca825d2d50a44453bc5652946e2c67;hpb=890e37ba2b8ea1c7593dc05926d7431e3bd00bfb diff --git a/mappers/32.c b/mappers/32.c index fd455d2..13e4bba 100644 --- a/mappers/32.c +++ b/mappers/32.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 @@ -28,20 +28,16 @@ static DECLFW(Mapper32_write) switch(A>>12) { case 0x8: - mapbyte1[1]=V; + mapbyte1[1]=V; if(IREMCon) {ROM_BANK8(0xc000,V);ROM_BANK8(0x8000,~1);} else {ROM_BANK8(0x8000,V);ROM_BANK8(0xc000,~1);} - X6502_Rebase(); break; - case 0x9:MIRROR_SET2(V&1); - IREMCon=(V>>1)&1; + case 0x9:IREMCon=(V>>1)&1; if(IREMCon) {ROM_BANK8(0xc000,mapbyte1[1]);ROM_BANK8(0x8000,~1);} else {ROM_BANK8(0x8000,mapbyte1[1]); ROM_BANK8(0xc000,~1);} MIRROR_SET(V&1); - X6502_Rebase(); break; case 0xa:ROM_BANK8(0xA000,V); - X6502_Rebase(); break; }