X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=mappers%2F17.c;h=c20bc289d0a0cc8aae8f092350a57049afb6d939;hp=66b85d48a120263beef569d7a99f31691ca7dda7;hb=386f5371eb984fb9c2860c83e740890a75cd45c1;hpb=c62d28102c77e19c291c78bf6bf7f0a81abd54b9 diff --git a/mappers/17.c b/mappers/17.c index 66b85d4..c20bc28 100644 --- a/mappers/17.c +++ b/mappers/17.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 @@ -15,22 +15,21 @@ * * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "mapinc.h" -static void FP_FASTAPASS(1) FFEIRQHook(int a) +static void FFEIRQHook(int a) { if(IRQa) { IRQCount+=a; - if(IRQCount>=0x10000) { - TriggerIRQ(); + X6502_IRQBegin(FCEU_IQEXT); IRQa=0; IRQCount=0; } @@ -42,14 +41,14 @@ DECLFW(Mapper17_write) { switch(A){ default: - break; + break; case 0x42FE: onemir((V>>4)&1); break; case 0x42FF: MIRROR_SET((V>>4)&1); - break; - case 0x4501:IRQa=V&1;break; + 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;