*
* 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
*
* 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
int x=((A>>1)&1)|((A-0x8000)>>11);
K4buf2[x]&=(0xF0)>>((A&1)<<2);
K4buf2[x]|=(V&0xF)<<((A&1)<<2);
ROM_BANK8(0x8000+(x<<13),K4buf2[x]);
int x=((A>>1)&1)|((A-0x8000)>>11);
K4buf2[x]&=(0xF0)>>((A&1)<<2);
K4buf2[x]|=(V&0xF)<<((A&1)<<2);
ROM_BANK8(0x8000+(x<<13),K4buf2[x]);
K4buf[x]&=(0xF0)>>((A&1)<<2);
K4buf[x]|=(V&0xF)<<((A&1)<<2);
VROM_BANK1(x<<10,K4buf[x]);
K4buf[x]&=(0xF0)>>((A&1)<<2);
K4buf[x]|=(V&0xF)<<((A&1)<<2);
VROM_BANK1(x<<10,K4buf[x]);
- case 0xe000:IRQLatch&=0xFFF0;IRQLatch|=(V&0x0f);break;
- case 0xe001:IRQLatch&=0xFF0F;IRQLatch|=(V&0x0f)<<4;break;
- case 0xe002:IRQLatch&=0xF0FF;IRQLatch|=(V&0x0f)<<8;break;
- case 0xe003:IRQLatch&=0x0FFF;IRQLatch|=(V&0x0f)<<12;break;
- case 0xf000:IRQCount=IRQLatch;
- break;
- case 0xf001:IRQa=V&1;
- X6502_IRQEnd(FCEU_IQEXT);
- break;
- case 0xf002:MIRROR_SET2(V&1);
- if(V&2) onemir(0);
- break;
+ case 0xe000:IRQLatch&=0xFFF0;IRQLatch|=(V&0x0f);break;
+ case 0xe001:IRQLatch&=0xFF0F;IRQLatch|=(V&0x0f)<<4;break;
+ case 0xe002:IRQLatch&=0xF0FF;IRQLatch|=(V&0x0f)<<8;break;
+ case 0xe003:IRQLatch&=0x0FFF;IRQLatch|=(V&0x0f)<<12;break;
+ case 0xf000:IRQCount=IRQLatch;
+ break;
+ case 0xf001:IRQa=V&1;
+ X6502_IRQEnd(FCEU_IQEXT);
+ break;
+ case 0xf002:MIRROR_SET2(V&1);
+ if(V&2) onemir(0);
+ break;