X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=mappers%2F17.c;fp=mappers%2F17.c;h=0000000000000000000000000000000000000000;hp=c20bc289d0a0cc8aae8f092350a57049afb6d939;hb=43725da7349c85fa13e828fdbf20cc7ac8d298d6;hpb=386f5371eb984fb9c2860c83e740890a75cd45c1 diff --git a/mappers/17.c b/mappers/17.c deleted file mode 100644 index c20bc28..0000000 --- a/mappers/17.c +++ /dev/null @@ -1,73 +0,0 @@ -/* FCE Ultra - NES/Famicom Emulator - * - * Copyright notice for this file: - * 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 - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include "mapinc.h" - - - -static void FFEIRQHook(int a) -{ - if(IRQa) - { - IRQCount+=a; - if(IRQCount>=0x10000) - { - X6502_IRQBegin(FCEU_IQEXT); - IRQa=0; - IRQCount=0; - } - } -} - - -DECLFW(Mapper17_write) -{ - switch(A){ - default: - break; - case 0x42FE: - onemir((V>>4)&1); - break; - case 0x42FF: - MIRROR_SET((V>>4)&1); - break; - case 0x4501:IRQa=0;X6502_IRQEnd(FCEU_IQEXT);break; - case 0x4502:IRQCount&=0xFF00;IRQCount|=V;break; - case 0x4503:IRQCount&=0x00FF;IRQCount|=V<<8;IRQa=1;break; - case 0x4504: ROM_BANK8(0x8000,V);break; - case 0x4505: ROM_BANK8(0xA000,V);break; - case 0x4506: ROM_BANK8(0xC000,V);break; - case 0x4507: ROM_BANK8(0xE000,V);break; - case 0x4510: VROM_BANK1(0x0000,V);break; - case 0x4511: VROM_BANK1(0x0400,V);break; - case 0x4512: VROM_BANK1(0x0800,V);break; - case 0x4513: VROM_BANK1(0x0C00,V);break; - case 0x4514: VROM_BANK1(0x1000,V);break; - case 0x4515: VROM_BANK1(0x1400,V);break; - case 0x4516: VROM_BANK1(0x1800,V);break; - case 0x4517: VROM_BANK1(0x1C00,V);break; - } -} - -void Mapper17_init(void) -{ -MapIRQHook=FFEIRQHook; -SetWriteHandler(0x4020,0x5fff,Mapper17_write); -}