X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=boards%2Fmalee.c;h=83f2621ecb674191e4a4974c8c6b5ffdaca28b70;hb=refs%2Fheads%2Fmaster;hp=f5751592b3a0a5c4d96edfe0764ab7d5860061fe;hpb=c62d28102c77e19c291c78bf6bf7f0a81abd54b9;p=fceu.git diff --git a/boards/malee.c b/boards/malee.c index f575159..83f2621 100644 --- a/boards/malee.c +++ b/boards/malee.c @@ -1,7 +1,7 @@ /* FCE Ultra - NES/Famicom Emulator * * Copyright notice for this file: - * Copyright (C) 2002 Ben Parnell + * Copyright (C) 2002 Xodnizel * * 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 @@ -16,30 +16,30 @@ * 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" -DECLFW(MWrite) -{ - (GameMemBlock-0x7000)[A]=V; -} +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,MWrite); + SetWriteHandler(0x7000,0x77FF,CartBW); setprg2r(1,0x6000,0); setprg32(0x8000,0); setchr8(0); } -void MALEE_Init(void) +void MALEE_Init(CartInfo *info) { - AddExState(GameMemBlock, 2048, 0,"RAM"); - SetupCartPRGMapping(0x10,GameMemBlock,2048,1); - BoardPower=MALEEReset; + info->Power=MALEEPower; + SetupCartPRGMapping(0x10, WRAM, 2048, 1); + AddExState(WRAM, 2048, 0,"WRAM"); }