UNIF RT-01 - new dump "Test Ver. 1.01 Dlya Proverki TV Pristavok (RT-01, by SS aka Snake)(Unl)[U][!]"

This commit is contained in:
CaH4e3 2016-01-28 14:49:30 +00:00
parent aabd53b10c
commit b9d2b3adae
5 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,53 @@
/* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 2016 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
*
* Test Ver. 1.01 Dlya Proverki TV Pristavok (RT-01, by SS aka Snake)
* A simple board with 16K PRG ROM + 2K CHR ROM with no mapper, hardwired mirroring
* PRG EPROM has copy protected areas with "weak bits", which is tested at some
* points of the program. Trying to simalate "weak bits" behaviour
*
*/
#include "mapinc.h"
static DECLFR(UNLRT01Read) {
// u16 i, prot_areas[2][2] = {
// { 0x8E80, 0x8EFF },
// { 0xFE80, 0xFEFF },
// };
if(((A >= 0xCE80) && (A < 0xCF00)) ||
((A >= 0xFE80) && (A < 0xFF00))) {
return 0xF2 | (rand() & 0x0D);
} else
return CartBR(A);
}
static void UNLRT01Power(void) {
setprg16(0x8000, 0);
setprg16(0xC000, 0);
setchr2(0x0000,0);
setchr2(0x0800,0);
setchr2(0x1000,0);
setchr2(0x1800,0);
SetReadHandler(0x8000, 0xFFFF, UNLRT01Read);
}
void UNLRT01_Init(CartInfo *info) {
info->Power = UNLRT01Power;
}

View File

@ -464,6 +464,7 @@ static BMAPPING bmap[] = {
{ "EH8813A", UNLEH8813A_Init, 0 },
{ "HP898F", BMCHP898F_Init, 0 },
{ "F-15", BMCF15_Init, 0 },
{ "RT-01", UNLRT01_Init, 0 },
{ 0, 0, 0 }
};

View File

@ -152,6 +152,7 @@ void UNLBMW8544_Init(CartInfo *info);
void UNLEH8813A_Init(CartInfo *info);
void BMCHP898F_Init(CartInfo *info);
void BMCF15_Init(CartInfo *info);
void UNLRT01_Init(CartInfo *info);
extern uint8 *UNIFchrrama; // Meh. So I can stop CHR RAM
// bank switcherooing with certain boards...

View File

@ -338,6 +338,7 @@
<ClCompile Include="..\src\boards\mmc2and4.cpp" />
<ClCompile Include="..\src\boards\onebus.cpp" />
<ClCompile Include="..\src\boards\pec-586.cpp" />
<ClCompile Include="..\src\boards\rt-01.cpp" />
<ClCompile Include="..\src\boards\sa-9602b.cpp" />
<ClCompile Include="..\src\boards\sb-2000.cpp" />
<ClCompile Include="..\src\boards\transformer.cpp" />

View File

@ -1066,6 +1066,9 @@
<ClCompile Include="..\src\boards\F-15.cpp">
<Filter>boards</Filter>
</ClCompile>
<ClCompile Include="..\src\boards\rt-01.cpp">
<Filter>boards</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\src\drivers\common\args.h">