X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=boards%2F183.c;h=8d4f79b113644b7f805d654c92771d747ac9b640;hb=0d6a66c2a80f50ae51327cd406f9df14d99ad02e;hp=94cf0726916628dfcaed61eff27b2f9074965302;hpb=d97315ac0bca825d2d50a44453bc5652946e2c67;p=fceu.git diff --git a/boards/183.c b/boards/183.c index 94cf072..8d4f79b 100644 --- a/boards/183.c +++ b/boards/183.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Gimmick Bootleg + * Gimmick Bootleg (VRC4 mapper) */ #include "mapinc.h" @@ -32,8 +32,8 @@ static SFORMAT StateRegs[]= { {prg, 4, "PRG"}, {chr, 8, "CHR"}, - {&IRQCount, 1, "IRQCOUNT"}, - {&IRQPre, 1, "IRQPRE"}, + {&IRQCount, 1, "IRQC"}, + {&IRQPre, 1, "IRQP"}, {&IRQa, 1, "IRQA"}, {0} }; @@ -64,7 +64,7 @@ static DECLFW(M183Write) { if(((A&0xF80C)>=0xB000)&&((A&0xF80C)<=0xE00C)) { - uint8 index=(((A&0x7000)>>11)-6)|((A&8)>>3); + int index=(((A>>11)-6)|(A>>3))&7; chr[index]=(chr[index]&(0xF0>>(A&4)))|((V&0x0F)<<(A&4)); SyncChr(); }