X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mappers%2F113.c;h=525f131cc2aa05a34c503eca9caace8227bae6ed;hb=0bb3fe122854be9af6c3024fef9f503d27bc63a1;hp=66548b5da92be473cb6509456d154881db10bc2a;hpb=c62d28102c77e19c291c78bf6bf7f0a81abd54b9;p=fceu.git diff --git a/mappers/113.c b/mappers/113.c index 66548b5..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 @@ -22,20 +22,37 @@ /* I'm getting the feeling this is another "jam two different bank switching hardwares into one mapper". -*/ +*/ /* HES 4-in-1 */ DECLFW(Mapper113_write) { ROM_BANK32((V>>3)&7); - VROM_BANK8(V&7); + VROM_BANK8(((V>>3)&8)|(V&7)); + //printf("$%04x:$%02x\n",A,V); } - + /* Deathbots */ DECLFW(Mapper113_writeh) { - ROM_BANK32(V&0xF); + //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; + } }