X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=mappers%2F228.c;h=bfae3a63db3319eba82668f0eafb214dbe39f095;hp=e38063de0df91f7b57040874486422e836595f70;hb=d97315ac0bca825d2d50a44453bc5652946e2c67;hpb=890e37ba2b8ea1c7593dc05926d7431e3bd00bfb diff --git a/mappers/228.c b/mappers/228.c index e38063d..bfae3a6 100644 --- a/mappers/228.c +++ b/mappers/228.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 @@ -27,16 +27,16 @@ static DECLFW(Mapper228_write) MIRROR_SET((A>>13)&1); page=(A>>7)&0x3F; + //printf("%04x\n",A); if((page&0x30)==0x30) page-=0x10; - + pagel=pageh=(page<<1) + (((A>>6)&1)&((A>>5)&1)); pageh+=((A>>5)&1)^1; ROM_BANK16(0x8000,pagel); ROM_BANK16(0xC000,pageh); VROM_BANK8( (V&0x3) | ((A&0xF)<<2) ); - X6502_Rebase(); } static void A52Reset(void)