/* 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
if(IRQa)
{
IRQCount+=a;
-
if(IRQCount>=0x10000)
{
- TriggerIRQ();
+ X6502_IRQBegin(FCEU_IQEXT);
IRQa=0;
IRQCount=0;
}
{
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;