NES - Start mapper 184, Altantis no Nazo mostly works
This commit is contained in:
parent
2fe2aae243
commit
a4fa09b8c1
|
@ -3,7 +3,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProductVersion>9.0.30729</ProductVersion>
|
<ProductVersion>9.0.21022</ProductVersion>
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
<ProjectGuid>{197D4314-8A9F-49BA-977D-54ACEFAEB6BA}</ProjectGuid>
|
<ProjectGuid>{197D4314-8A9F-49BA-977D-54ACEFAEB6BA}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
|
@ -75,6 +75,7 @@
|
||||||
<Compile Include="Consoles\Nintendo\NES\Boards\NROM.cs">
|
<Compile Include="Consoles\Nintendo\NES\Boards\NROM.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Consoles\Nintendo\NES\Boards\Sunsoft1.cs" />
|
||||||
<Compile Include="Consoles\Nintendo\NES\Boards\SxROM.cs">
|
<Compile Include="Consoles\Nintendo\NES\Boards\SxROM.cs">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|
|
@ -0,0 +1,54 @@
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
namespace BizHawk.Emulation.Consoles.Nintendo
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* Life Span: April 1986 - July 1986
|
||||||
|
PCB Class: SUNSOFT-1
|
||||||
|
iNES Mapper #184
|
||||||
|
PRG-ROM: 32KB
|
||||||
|
PRG-RAM: None
|
||||||
|
CHR-ROM: 16KB
|
||||||
|
CHR-RAM: None
|
||||||
|
Battery is not available
|
||||||
|
Uses vertical mirroring
|
||||||
|
No CIC present
|
||||||
|
Other chips used: Sunsoft-1
|
||||||
|
*
|
||||||
|
* Games:
|
||||||
|
* Atlantis no Nazo
|
||||||
|
* The Wing of Madoola
|
||||||
|
*/
|
||||||
|
|
||||||
|
class Sunsoft1 : NES.NESBoardBase
|
||||||
|
{
|
||||||
|
int prg, chr;
|
||||||
|
|
||||||
|
public override bool Configure(NES.EDetectionOrigin origin)
|
||||||
|
{
|
||||||
|
//configure
|
||||||
|
SetMirrorType(Cart.pad_h, Cart.pad_v);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override byte ReadPPU(int addr)
|
||||||
|
{
|
||||||
|
int left_piece = 0;
|
||||||
|
int right_piece = 3;
|
||||||
|
|
||||||
|
if (addr < 0x1000)
|
||||||
|
{
|
||||||
|
return VROM[(addr%0x1000) + (left_piece*0x1000)];
|
||||||
|
}
|
||||||
|
else if (addr < 0x2000)
|
||||||
|
{
|
||||||
|
return VROM[(addr%0x1000) + (right_piece*0x1000)];
|
||||||
|
}
|
||||||
|
|
||||||
|
return base.ReadPPU(addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue