X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=boards%2F156.c;fp=mappers%2F156.c;h=06c57c623c308848e9477249ae25a83f7de3b3e8;hp=8e40a19769351de1b1b82a49b6daa102ac7e1b49;hb=43725da7349c85fa13e828fdbf20cc7ac8d298d6;hpb=386f5371eb984fb9c2860c83e740890a75cd45c1 diff --git a/mappers/156.c b/boards/156.c similarity index 88% rename from mappers/156.c rename to boards/156.c index 8e40a19..06c57c6 100644 --- a/mappers/156.c +++ b/boards/156.c @@ -27,14 +27,14 @@ #include "mapinc.h" static uint8 chrlo[8], chrhi[8], prg, mirr, mirrisused = 0; -// uint8 *WRAM=NULL; +static uint8 *WRAM=NULL; static uint32 WRAMSIZE; static SFORMAT StateRegs[]= { {&prg, 1, "PREG"}, - {chrlo, 8, "CRLO"}, - {chrhi, 8, "CRHI"}, + {chrlo, 8, "CRGL"}, + {chrhi, 8, "CRGH"}, {&mirr, 1, "MIRR"}, {0} }; @@ -77,26 +77,12 @@ static DECLFW(M156Write) } } -static void M1566Reset() -{ - for(int i=0;i<8;i++) - { - chrlo[i]=0; - chrhi[i]=0; - } - prg=0; - mirr=0; - mirrisused = 0; -} - static void M156Power(void) { Sync(); SetReadHandler(0x6000,0xFFFF,CartBR); SetWriteHandler(0x6000,0x7FFF,CartBW); SetWriteHandler(0xC000,0xCFFF,M156Write); - - M1566Reset(); } static void M156Close(void)