X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=mappers%2F113.c;h=525f131cc2aa05a34c503eca9caace8227bae6ed;hp=4662ed55455a4100bcc3b2ba8d17ccd6ea2c10ed;hb=d97315ac0bca825d2d50a44453bc5652946e2c67;hpb=890e37ba2b8ea1c7593dc05926d7431e3bd00bfb diff --git a/mappers/113.c b/mappers/113.c index 4662ed5..525f131 100644 --- a/mappers/113.c +++ b/mappers/113.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,16 +28,31 @@ DECLFW(Mapper113_write) { ROM_BANK32((V>>3)&7); - VROM_BANK8(V&7); - X6502_Rebase(); + VROM_BANK8(((V>>3)&8)|(V&7)); + //printf("$%04x:$%02x\n",A,V); } /* Deathbots */ DECLFW(Mapper113_writeh) { - ROM_BANK32(V&0xF); - X6502_Rebase(); + //printf("$%04x:$%02x\n",A,V); + // ROM_BANK32(V&0x7); + //VROM_BANK8((V>>4)&0x7); + switch(A) { + case 0x8008: + case 0x8009: + ROM_BANK32(V>>3); + VROM_BANK8(((V>>3)&0x08)+(V&0x07) ); + break; + case 0x8E66: + case 0x8E67: + VROM_BANK8( (V&0x07)?0:1 ); + break; + case 0xE00A: + MIRROR_SET2( 2 ); + break; + } }