NES - Jaleco_JF_7 board (iNES mapper 87) implemented

This commit is contained in:
andres.delikat 2011-09-19 22:26:20 +00:00
parent c282308071
commit 94c57481f5
3 changed files with 34 additions and 33 deletions

View File

@ -99,6 +99,7 @@
<Compile Include="Consoles\Nintendo\NES\Boards\Irem_G101.cs" />
<Compile Include="Consoles\Nintendo\NES\Boards\Irem_H3001.cs" />
<Compile Include="Consoles\Nintendo\NES\Boards\Jaleco-JF_11_14.cs" />
<Compile Include="Consoles\Nintendo\NES\Boards\JALECO_JF_07.cs" />
<Compile Include="Consoles\Nintendo\NES\Boards\Mapper069.cs" />
<Compile Include="Consoles\Nintendo\NES\Boards\Mapper107.cs" />
<Compile Include="Consoles\Nintendo\NES\Boards\Mapper240.cs" />

View File

@ -71,7 +71,7 @@ Open bus and bus conflict emulation is not considered complete or thorough in an
082 Misc (J) Nothing
085 VRC7 Needed (lagrange point)
086 Misc (J) Nothing
087 Misc (J) Nothing (easy)
087 Misc (J) Started but City Connection and Ninja Jajamaru Kun crash (possibly in need of a db entry)
088 Misc (J) Nothing
089 Misc (J) Nothing (easy)
090 Garbage Junk (+209)

View File

@ -24,12 +24,12 @@ Other chips used: Sunsoft-1
*/
class Jaleco_JF_11_14 : NES.NESBoardBase
{
int chr, prg;
{
int chr, prg;
public override bool Configure(NES.EDetectionOrigin origin)
{
//configure
public override bool Configure(NES.EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
{
case "JALECO-JF-14":
@ -39,37 +39,37 @@ Other chips used: Sunsoft-1
default:
return false;
}
SetMirrorType(Cart.pad_h, Cart.pad_v);
return true;
}
SetMirrorType(Cart.pad_h, Cart.pad_v);
return true;
}
public override byte ReadPRG(int addr)
{
if (addr < 0x8000)
return ROM[addr + (prg * 0x8000)];
else
return base.ReadPRG(addr);
}
public override byte ReadPRG(int addr)
{
if (addr < 0x8000)
return ROM[addr + (prg * 0x8000)];
else
return base.ReadPRG(addr);
}
public override byte ReadPPU(int addr)
{
if (addr < 0x2000)
return VROM[(addr & 0x1FFF) + (chr * 0x2000)];
else
return base.ReadPPU(addr);
}
public override byte ReadPPU(int addr)
{
if (addr < 0x2000)
return VROM[(addr & 0x1FFF) + (chr * 0x2000)];
else
return base.ReadPPU(addr);
}
public override void WriteWRAM(int addr, byte value)
{
prg = (value >> 4) & 3;
chr = (value & 15);
}
public override void WriteWRAM(int addr, byte value)
{
prg = (value >> 4) & 3;
chr = (value & 15);
}
public override void SyncState(Serializer ser)
{
{
base.SyncState(ser);
ser.Sync("chr", ref chr);
ser.Sync("prg", ref prg);
}
}
ser.Sync("chr", ref chr);
ser.Sync("prg", ref prg);
}
}
}