From 1fd5b80d284e23d83b3170fb3061f300d5f3e468 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Mon, 20 Apr 2020 20:52:52 -0400 Subject: [PATCH] GBHawk: fix ram bank register --- .../Consoles/Nintendo/GBHawk/HW_Registers.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/HW_Registers.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/HW_Registers.cs index a886f86574..5f59a4db60 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/HW_Registers.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/HW_Registers.cs @@ -174,9 +174,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk } break; - // Speed Control for GBC + // Ram bank for GBC case 0xFF70: - if (GBC_compat) + if (is_GBC) { ret = (byte)RAM_Bank; } @@ -447,8 +447,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk // RAM Bank in GBC mode case 0xFF70: - //Console.WriteLine(value); - if (GBC_compat) + if (is_GBC) { RAM_Bank = value & 7; if (RAM_Bank == 0) { RAM_Bank = 1; }