diff --git a/BizHawk.Emulation/BizHawk.Emulation.csproj b/BizHawk.Emulation/BizHawk.Emulation.csproj index 1f22f92375..b65486d04c 100644 --- a/BizHawk.Emulation/BizHawk.Emulation.csproj +++ b/BizHawk.Emulation/BizHawk.Emulation.csproj @@ -110,6 +110,7 @@ + diff --git a/BizHawk.Emulation/Consoles/Nintendo/Docs/compatibility.txt b/BizHawk.Emulation/Consoles/Nintendo/Docs/compatibility.txt index e6abb644fb..f4472eddb8 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/Docs/compatibility.txt +++ b/BizHawk.Emulation/Consoles/Nintendo/Docs/compatibility.txt @@ -93,7 +93,7 @@ Open bus and bus conflict emulation is not considered complete or thorough in an 152 Misc (J) Complete 154 Misc (J) Nothing 159 Bandai {{See 016}} -164 Pirate Junk +164 Pirate Started 165 Pirate Junk 180 Misc (J) Complete (but we don't implement the crazy climber controller) 182 MMC3Variant Nothing diff --git a/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/Mapper164.cs b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/Mapper164.cs new file mode 100644 index 0000000000..fbd4bb5ac1 --- /dev/null +++ b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/Mapper164.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace BizHawk.Emulation.Consoles.Nintendo +{ + class Mapper164 : NES.NESBoardBase + { + //Mapper 164 + //Final Fantasy V (Unl) + + int prg; + + public override bool Configure(NES.EDetectionOrigin origin) + { + switch (Cart.board_type) + { + case "Mapper164": + break; + default: + return false; + } + SetMirrorType(Cart.pad_h, Cart.pad_v); + prg = 0xFF; + return true; + } + + public override void WriteEXP(int addr, byte value) + { + addr &= 0xF300; + if (addr == 0x5000) + prg = value; + } + + public override void WritePRG(int addr, byte value) + { + addr &= 0xF300; + if (addr == 0xD000) + prg = value; + } + + public override byte ReadPPU(int addr) + { + return VROM[addr + (prg * 0x8000)]; + } + } +} diff --git a/BizHawk.MultiClient/output/gamedb.txt b/BizHawk.MultiClient/output/gamedb.txt index 631fa0b387..fa978c44c2 100644 --- a/BizHawk.MultiClient/output/gamedb.txt +++ b/BizHawk.MultiClient/output/gamedb.txt @@ -90,6 +90,7 @@ sha1:7BD102770FE7766BF8430ACDB3C17EE51E30478C H Mike Tyson's Punch-Out!! (Hacked sha1:536D623BA02A622BDE8E2D7D514AE9785B5E0357 H Punch Out!! Kirby (Hack) (U) NES board=NES-PNROM;PRG=128;CHR=128;WRAM=0 ;other assorted roms +sha1:D09EF8127C64CBE817B45DF33C4D43E7B441E381 Final Fantasy V (Unl) NES board=Mapper164;PRG=512;CHR=0;WRAM=8;PRAM=8 sha1:92D9695FEB774F60965A8303CFE3E6AAEE7B7B62 Magic Dragon (Unl) NES board=Mapper107;PRG=128;CHR=64;WRAM=8;PAD_H=1 #include gamedb_neshomebrew.txt