revert r4061, because it's a bad idea
This commit is contained in:
parent
aa93d8f04e
commit
933240845a
|
@ -355,7 +355,6 @@
|
|||
<Compile Include="Consoles\Nintendo\NES\Boards\NROM.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Consoles\Nintendo\NES\Boards\NROM368.cs" />
|
||||
<Compile Include="Consoles\Nintendo\NES\Boards\PxROM_FxROM.cs" />
|
||||
<Compile Include="Consoles\Nintendo\NES\Boards\SachenSimple.cs" />
|
||||
<Compile Include="Consoles\Nintendo\NES\Boards\SEEPROM.cs" />
|
||||
|
|
|
@ -16,10 +16,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
switch (Cart.board_type)
|
||||
{
|
||||
case "MAPPER000":
|
||||
if (Cart.prg_size <= 32)
|
||||
break;
|
||||
else
|
||||
return false; // NROM-368
|
||||
case "MAPPER219": //adelikat: a version of 3D-Block tries to use this ROM, but plays fine as NROM and 219 is undocumented by Disch
|
||||
break;
|
||||
|
||||
|
|
|
@ -1,55 +0,0 @@
|
|||
namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||
{
|
||||
public sealed class NROM368 : NES.NESBoardBase
|
||||
{
|
||||
// not even one actual prototype of this pile of shit exists, and
|
||||
// there are already two incompatible implementations. pathetic.
|
||||
bool small;
|
||||
|
||||
public override bool Configure(NES.EDetectionOrigin origin)
|
||||
{
|
||||
switch (Cart.board_type)
|
||||
{
|
||||
case "UNIF_NROM-368": // ??
|
||||
break;
|
||||
case "MAPPER000":
|
||||
if (Cart.prg_size == 48 || Cart.prg_size == 64)
|
||||
break;
|
||||
else
|
||||
return false;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
AssertPrg(48, 64);
|
||||
small = Cart.prg_size == 48;
|
||||
SetMirrorType(Cart.pad_h, Cart.pad_v);
|
||||
return true;
|
||||
}
|
||||
|
||||
public override byte ReadPRG(int addr)
|
||||
{
|
||||
if (small)
|
||||
return ROM[addr + 0x4000];
|
||||
else
|
||||
return ROM[addr];
|
||||
}
|
||||
|
||||
public override byte ReadWRAM(int addr)
|
||||
{
|
||||
if (small)
|
||||
return ROM[addr + 0x2000];
|
||||
else
|
||||
return ROM[addr + 0xa000];
|
||||
}
|
||||
|
||||
public override byte ReadEXP(int addr)
|
||||
{
|
||||
if (addr < 0x800)
|
||||
return NES.DB;
|
||||
if (small)
|
||||
return ROM[addr];
|
||||
else
|
||||
return ROM[addr + 0x8000];
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue