From 755f7d7ac4b3a4496469967533106e9a0cee60eb Mon Sep 17 00:00:00 2001 From: goyuken Date: Wed, 29 Oct 2014 01:09:15 +0000 Subject: [PATCH] neshawk: make datach games boot --- .../Nintendo/NES/Boards/BANDAI-FCG-1.cs | 19 ++++++++++++++++--- output/gamedb/gamedb.txt | 8 ++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/BANDAI-FCG-1.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/BANDAI-FCG-1.cs index a52d3f5dd9..05f7759d11 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/BANDAI-FCG-1.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/BANDAI-FCG-1.cs @@ -38,6 +38,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES bool regs_prg_enable; // can the mapper regs be written to in 8000:ffff? bool regs_wram_enable; // can the mapper regs be written to in 6000:7fff? bool jump2 = false; // are we in special mode for the JUMP2 board? + bool vram = false; // is this a VRAM board? (also set to true for JUMP2) //regenerable state IntBuffer prg_banks_16k = new IntBuffer(2); @@ -130,6 +131,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES regs_prg_enable = true; regs_wram_enable = false; jump2 = true; + vram = true; break; case "BANDAI-JUMP2": // [5] AssertPrg(512); @@ -139,8 +141,19 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES regs_prg_enable = true; regs_wram_enable = false; jump2 = true; + vram = true; + break; + case "MAPPER157": // [6] + // incomplete + // bootgod doesn't have any of these recorded + AssertPrg(128, 256); + AssertChr(0); + Cart.vram_size = 8; + Cart.wram_size = 0; + regs_prg_enable = true; + regs_wram_enable = false; + vram = true; break; - default: return false; } @@ -301,7 +314,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES { if (addr < 0x2000) { - if (jump2) + if (vram) return VRAM[addr]; else return VROM[CalcPPUAddress(addr)]; @@ -316,7 +329,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES { if (addr < 0x2000) { - if (jump2) + if (vram) VRAM[addr] = value; } else diff --git a/output/gamedb/gamedb.txt b/output/gamedb/gamedb.txt index 6c9041b954..2fa9cd3300 100644 --- a/output/gamedb/gamedb.txt +++ b/output/gamedb/gamedb.txt @@ -134,6 +134,14 @@ sha1:F794FDA12D34E611D58E652319ED583AE61B81E0 Blargg's 6-MMC6.nes NES board=MA sha1:2F29F3DC724027FAD926BC9D4470A481884E42A5 Blargg's 6-MMC6.nes (newer) NES board=MAPPER004_MMC6 ;;;;;;;;;;;;;;;;;;;----------------------------------------------------------------------- +;datach stuff +29CC759D5CA214EEFC0CC1C6CE0F8B9111E58124 Datach - Battle Rush - Build Up Robot Tournament NES board=MAPPER157 +87478B635FEFB25FA13C4876E20F505A97426C1B Datach - Dragon Ball Z - Gekitou Tenkaichi Budou Kai NES board=MAPPER157 +B2089533E05FE95814D0D77F2729944CBEB95988 Datach - J League Super Top Players NES board=MAPPER157 +EDD7A45A7F27E396B6D686F1861642D509863132 Datach - SD Gundam - Gundam Wars NES board=MAPPER157 +533170D5EB685231CCD27B9C136FFA4FAD68A7B8 Datach - Ultraman Club - Supokon Fight! NES board=MAPPER157 +74218AAE93E4FEBFB2284BCF15811453418A2029 Datach - Yuu Yuu Hakusho - Bakutou Ankoku Bujutsu Kai NES board=MAPPER157 + #include gamedb_neshomebrew.txt #include gamedb_vs.txt #include gamedb_user.txt