X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=boards%2Fmalee.c;h=83f2621ecb674191e4a4974c8c6b5ffdaca28b70;hp=b0f194e7421ee030ccfbdd747f31c531f0a0b459;hb=0d6a66c2a80f50ae51327cd406f9df14d99ad02e;hpb=d97315ac0bca825d2d50a44453bc5652946e2c67 diff --git a/boards/malee.c b/boards/malee.c index b0f194e..83f2621 100644 --- a/boards/malee.c +++ b/boards/malee.c @@ -16,18 +16,22 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * FDS Conversion + * */ #include "mapinc.h" static uint8 WRAM[2048]; -static void MALEEReset(void) +static void MALEEPower(void) { setprg2r(0x10,0x7000,0); SetReadHandler(0x8000,0xFFFF,CartBR); - SetReadHandler(0x6000,0x67ff,CartBR); + SetReadHandler(0x6000,0x67FF,CartBR); SetReadHandler(0x7000,0x77FF,CartBR); + SetWriteHandler(0x7000,0x77FF,CartBW); setprg2r(1,0x6000,0); setprg32(0x8000,0); setchr8(0); @@ -35,7 +39,7 @@ static void MALEEReset(void) void MALEE_Init(CartInfo *info) { - info->Power=MALEEReset; + info->Power=MALEEPower; SetupCartPRGMapping(0x10, WRAM, 2048, 1); - AddExState(WRAM, 2048, 0,"RAM"); + AddExState(WRAM, 2048, 0,"WRAM"); }