NES - Start mapper 184, Altantis no Nazo mostly works

This commit is contained in:
andres.delikat 2011-03-21 04:23:55 +00:00
parent 2fe2aae243
commit a4fa09b8c1
2 changed files with 56 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{197D4314-8A9F-49BA-977D-54ACEFAEB6BA}</ProjectGuid>
<OutputType>Library</OutputType>
@ -75,6 +75,7 @@
<Compile Include="Consoles\Nintendo\NES\Boards\NROM.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Consoles\Nintendo\NES\Boards\Sunsoft1.cs" />
<Compile Include="Consoles\Nintendo\NES\Boards\SxROM.cs">
<SubType>Code</SubType>
</Compile>

View File

@ -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);
}
}
}