UNIF EH8813A - new dump "Dr. Mario II (Unl)[U][!]"
UNIF HP898F - new dump "Prima Soft 10-in-1 (02 8807870-3)(Unl)[U][!]"
This commit is contained in:
parent
f8e6ed06f2
commit
bbf46b5f9d
|
@ -55,7 +55,7 @@ static void M168Power(void) {
|
||||||
SetReadHandler(0x8000, 0xFFFF, CartBR);
|
SetReadHandler(0x8000, 0xFFFF, CartBR);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void MNNNClose(void) {
|
static void M168Close(void) {
|
||||||
if (CHRRAM)
|
if (CHRRAM)
|
||||||
FCEU_gfree(CHRRAM);
|
FCEU_gfree(CHRRAM);
|
||||||
CHRRAM = NULL;
|
CHRRAM = NULL;
|
||||||
|
@ -67,7 +67,7 @@ static void StateRestore(int version) {
|
||||||
|
|
||||||
void Mapper168_Init(CartInfo *info) {
|
void Mapper168_Init(CartInfo *info) {
|
||||||
info->Power = M168Power;
|
info->Power = M168Power;
|
||||||
info->Close = MNNNClose;
|
info->Close = M168Close;
|
||||||
GameStateRestore = StateRestore;
|
GameStateRestore = StateRestore;
|
||||||
AddExState(&StateRegs, ~0, 0, 0);
|
AddExState(&StateRegs, ~0, 0, 0);
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,74 @@
|
||||||
|
/* FCE Ultra - NES/Famicom Emulator
|
||||||
|
*
|
||||||
|
* Copyright notice for this file:
|
||||||
|
* Copyright (C) 2015 CaH4e3
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "mapinc.h"
|
||||||
|
|
||||||
|
static uint16 addrlatch;
|
||||||
|
static uint8 datalatch;
|
||||||
|
|
||||||
|
static SFORMAT StateRegs[] =
|
||||||
|
{
|
||||||
|
{ &addrlatch, 2, "ADRL" },
|
||||||
|
{ &datalatch, 1, "DATL" },
|
||||||
|
{ 0 }
|
||||||
|
};
|
||||||
|
|
||||||
|
static void Sync(void) {
|
||||||
|
uint8 prg = (addrlatch & 7) | ((addrlatch & 0x40) >> 3);
|
||||||
|
setchr8(datalatch);
|
||||||
|
if(addrlatch & 0x80) {
|
||||||
|
setprg16(0x8000,prg);
|
||||||
|
setprg16(0xC000,prg);
|
||||||
|
} else {
|
||||||
|
setprg32(0x8000,prg >> 1);
|
||||||
|
}
|
||||||
|
setmirror(MI_V);
|
||||||
|
}
|
||||||
|
|
||||||
|
static DECLFW(EH8813AWrite) {
|
||||||
|
if((addrlatch & 0x100) == 0) {
|
||||||
|
addrlatch = A & 0x1FF;
|
||||||
|
datalatch = V & 0xF;
|
||||||
|
}
|
||||||
|
Sync();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void EH8813APower(void) {
|
||||||
|
addrlatch = datalatch = 0;
|
||||||
|
Sync();
|
||||||
|
SetReadHandler(0x8000, 0xFFFF, CartBR);
|
||||||
|
SetWriteHandler(0x8000, 0xFFFF, EH8813AWrite);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void EH8813AReset(void) {
|
||||||
|
addrlatch = datalatch = 0;
|
||||||
|
Sync();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void StateRestore(int version) {
|
||||||
|
Sync();
|
||||||
|
}
|
||||||
|
|
||||||
|
void UNLEH8813A_Init(CartInfo *info) {
|
||||||
|
info->Reset = EH8813AReset;
|
||||||
|
info->Power = EH8813APower;
|
||||||
|
GameStateRestore = StateRestore;
|
||||||
|
AddExState(&StateRegs, ~0, 0, 0);
|
||||||
|
}
|
|
@ -0,0 +1,69 @@
|
||||||
|
/* FCE Ultra - NES/Famicom Emulator
|
||||||
|
*
|
||||||
|
* Copyright notice for this file:
|
||||||
|
* Copyright (C) 2015 CaH4e3
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "mapinc.h"
|
||||||
|
|
||||||
|
static uint8 regs[2];
|
||||||
|
|
||||||
|
static SFORMAT StateRegs[] =
|
||||||
|
{
|
||||||
|
{ regs, 2, "REGS" },
|
||||||
|
{ 0 }
|
||||||
|
};
|
||||||
|
|
||||||
|
static void Sync(void) {
|
||||||
|
uint8 chr = (regs[0] >> 4) & 7;
|
||||||
|
uint8 prg = (regs[1] >> 3) & 7;
|
||||||
|
uint8 dec = (regs[1] >> 4) & 4;
|
||||||
|
setchr8(chr & (~(((regs[0] & 1) << 2) | (regs[0] & 2))));
|
||||||
|
setprg16(0x8000,prg & (~dec));
|
||||||
|
setprg16(0xC000,prg | dec);
|
||||||
|
setmirror(regs[1] >> 7);
|
||||||
|
}
|
||||||
|
|
||||||
|
static DECLFW(HP898FWrite) {
|
||||||
|
if((A & 0x6000) == 0x6000) {
|
||||||
|
regs[(A & 4) >> 2] = V;
|
||||||
|
Sync();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void HP898FPower(void) {
|
||||||
|
regs[0] = regs[1] = 0;
|
||||||
|
Sync();
|
||||||
|
SetReadHandler(0x8000, 0xFFFF, CartBR);
|
||||||
|
SetWriteHandler(0x6000, 0xFFFF, HP898FWrite);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void HP898FReset(void) {
|
||||||
|
regs[0] = regs[1] = 0;
|
||||||
|
Sync();
|
||||||
|
}
|
||||||
|
|
||||||
|
static void StateRestore(int version) {
|
||||||
|
Sync();
|
||||||
|
}
|
||||||
|
|
||||||
|
void BMCHP898F_Init(CartInfo *info) {
|
||||||
|
info->Reset = HP898FReset;
|
||||||
|
info->Power = HP898FPower;
|
||||||
|
GameStateRestore = StateRestore;
|
||||||
|
AddExState(&StateRegs, ~0, 0, 0);
|
||||||
|
}
|
|
@ -461,6 +461,8 @@ static BMAPPING bmap[] = {
|
||||||
{ "COOLBOY", COOLBOY_Init, BMCFLAG_256KCHRR },
|
{ "COOLBOY", COOLBOY_Init, BMCFLAG_256KCHRR },
|
||||||
{ "158B", UNL158B_Init, 0 },
|
{ "158B", UNL158B_Init, 0 },
|
||||||
{ "DRAGONFIGHTER", UNLBMW8544_Init, 0 },
|
{ "DRAGONFIGHTER", UNLBMW8544_Init, 0 },
|
||||||
|
{ "EH8813A", UNLEH8813A_Init, 0 },
|
||||||
|
{ "HP898F", BMCHP898F_Init, 0 },
|
||||||
|
|
||||||
{ 0, 0, 0 }
|
{ 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
|
@ -149,6 +149,8 @@ void UNLKS7010_Init(CartInfo *info);
|
||||||
void COOLBOY_Init(CartInfo *info);
|
void COOLBOY_Init(CartInfo *info);
|
||||||
void UNL158B_Init(CartInfo *info);
|
void UNL158B_Init(CartInfo *info);
|
||||||
void UNLBMW8544_Init(CartInfo *info);
|
void UNLBMW8544_Init(CartInfo *info);
|
||||||
|
void UNLEH8813A_Init(CartInfo *info);
|
||||||
|
void BMCHP898F_Init(CartInfo *info);
|
||||||
|
|
||||||
extern uint8 *UNIFchrrama; // Meh. So I can stop CHR RAM
|
extern uint8 *UNIFchrrama; // Meh. So I can stop CHR RAM
|
||||||
// bank switcherooing with certain boards...
|
// bank switcherooing with certain boards...
|
||||||
|
|
|
@ -315,9 +315,11 @@
|
||||||
<ClCompile Include="..\src\boards\cityfighter.cpp" />
|
<ClCompile Include="..\src\boards\cityfighter.cpp" />
|
||||||
<ClCompile Include="..\src\boards\coolboy.cpp" />
|
<ClCompile Include="..\src\boards\coolboy.cpp" />
|
||||||
<ClCompile Include="..\src\boards\dance2000.cpp" />
|
<ClCompile Include="..\src\boards\dance2000.cpp" />
|
||||||
|
<ClCompile Include="..\src\boards\eh8813a.cpp" />
|
||||||
<ClCompile Include="..\src\boards\et-100.cpp" />
|
<ClCompile Include="..\src\boards\et-100.cpp" />
|
||||||
<ClCompile Include="..\src\boards\famicombox.cpp" />
|
<ClCompile Include="..\src\boards\famicombox.cpp" />
|
||||||
<ClCompile Include="..\src\boards\ffe.cpp" />
|
<ClCompile Include="..\src\boards\ffe.cpp" />
|
||||||
|
<ClCompile Include="..\src\boards\hp898f.cpp" />
|
||||||
<ClCompile Include="..\src\boards\ks7010.cpp" />
|
<ClCompile Include="..\src\boards\ks7010.cpp" />
|
||||||
<ClCompile Include="..\src\boards\ks7012.cpp" />
|
<ClCompile Include="..\src\boards\ks7012.cpp" />
|
||||||
<ClCompile Include="..\src\boards\ks7013.cpp" />
|
<ClCompile Include="..\src\boards\ks7013.cpp" />
|
||||||
|
|
|
@ -1057,6 +1057,12 @@
|
||||||
<ClCompile Include="..\src\boards\et-100.cpp">
|
<ClCompile Include="..\src\boards\et-100.cpp">
|
||||||
<Filter>boards</Filter>
|
<Filter>boards</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\boards\eh8813a.cpp">
|
||||||
|
<Filter>boards</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\boards\hp898f.cpp">
|
||||||
|
<Filter>boards</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\src\drivers\common\args.h">
|
<ClInclude Include="..\src\drivers\common\args.h">
|
||||||
|
|
Loading…
Reference in New Issue