diff --git a/BizHawk.Emulation/BizHawk.Emulation.csproj b/BizHawk.Emulation/BizHawk.Emulation.csproj index 6102098bfb..937dd23bb8 100644 --- a/BizHawk.Emulation/BizHawk.Emulation.csproj +++ b/BizHawk.Emulation/BizHawk.Emulation.csproj @@ -73,6 +73,7 @@ Code + Code diff --git a/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/Mapper242.cs b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/Mapper242.cs new file mode 100644 index 0000000000..46544ffca7 --- /dev/null +++ b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/Mapper242.cs @@ -0,0 +1,58 @@ +using System; +using System.IO; +using System.Diagnostics; + +namespace BizHawk.Emulation.Consoles.Nintendo +{ + /* +PCB Class: Unknown +iNES Mapper #242 +PRG-ROM: 32KB +PRG-RAM: None +CHR-ROM: 16KB +CHR-RAM: None +Battery is not available +mirroring - both + * + * Games: + * Wai Xing Zhan Shi (Ch) + */ + + class Mapper242 : NES.NESBoardBase + { + + public override bool Configure(NES.EDetectionOrigin origin) + { + //configure + switch (Cart.board_type) + { + case "Mapper242": + break; + default: + return false; + } + return true; + } + + public override byte ReadPPU(int addr) + { + return base.ReadPPU(addr); + } + + public override byte ReadPRG(int addr) + { + return base.ReadPRG(addr); + } + + public override void WriteWRAM(int addr, byte value) + { + + base.WriteWRAM(addr, value); + } + + public override void SyncState(Serializer ser) + { + base.SyncState(ser); + } + } +} diff --git a/BizHawk.MultiClient/output/gamedb.txt b/BizHawk.MultiClient/output/gamedb.txt index 46ae4cc303..2743383122 100644 --- a/BizHawk.MultiClient/output/gamedb.txt +++ b/BizHawk.MultiClient/output/gamedb.txt @@ -2267,6 +2267,7 @@ sha1:CF655333DCE649A3C7060E9989860F2FC74E473A Demon Sword (U) NES board=NES-SL sha1:7786BA1FE8E7E9E542EEB13CF2A6E2A1AD7F696D Metal Gear (U) NES board=KONAMI-UNROM;PRG=128 sha1:894F20405286F5F75133CE4648300E2C67972B40 Solomon's Key (U) NES board=NES-CNROM;PRG=32;CHR=32 sha1:0C53B06E1D13AE917536BB39010914EA3D111FF5 Thunder & Lightning (U) NES board=NES-GNROM;PRG=128;CHR=32;bad +sha1:9BDFF9A19265D84979F43F0F6E925A735DDEB38B Wai Xing Zhan Shi (Ch) NES board=Mapper242;PRG=32;CHR=0 ;these roms are from goodNES but they are confusingly messed up somehow sha1:192C543866F1037276D2778046ABEDCA84868E26 Bio Senshi Dan - Increaser To No Tatakai (J) NES board=JALECO-JF-14;PRG=128;CHR=128