X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=boards%2F117.c;h=61d95197a9910e8923be6bdba2d991540e24ac62;hb=0d6a66c2a80f50ae51327cd406f9df14d99ad02e;hp=67460151d16c3dd5bb561ffe7ff5498cb78fec93;hpb=e2d0dd92bfad989cce4270fc0ac5a712476c7c50;p=fceu.git diff --git a/boards/117.c b/boards/117.c index 6746015..61d9519 100644 --- a/boards/117.c +++ b/boards/117.c @@ -20,7 +20,7 @@ #include "mapinc.h" -static uint8 prgreg[4], chrreg[8]; +static uint8 prgreg[4], chrreg[8], mirror; static uint8 IRQa, IRQCount, IRQLatch; static SFORMAT StateRegs[]= @@ -28,8 +28,9 @@ static SFORMAT StateRegs[]= {&IRQa, 1, "IRQA"}, {&IRQCount, 1, "IRQC"}, {&IRQLatch, 1, "IRQL"}, - {prgreg, 4, "PREGS"}, - {chrreg, 8, "CREGS"}, + {prgreg, 4, "PREG"}, + {chrreg, 8, "CREG"}, + {&mirror, 1, "MREG"}, {0} }; @@ -42,6 +43,7 @@ static void Sync(void) int i; for(i=0; i<8; i++) setchr1(i<<10,chrreg[i]); + setmirror(mirror^1); } static DECLFW(M117Write) @@ -62,6 +64,7 @@ static DECLFW(M117Write) case 0xc003: IRQCount=IRQLatch; IRQa|=2; break; case 0xe000: IRQa&=~1; IRQa|=V&1; X6502_IRQEnd(FCEU_IQEXT); break; case 0xc002: X6502_IRQEnd(FCEU_IQEXT); break; + case 0xd000: mirror=V&1; } }