From 164a6cb42df8eff2a8484136a037ad1957cd17d8 Mon Sep 17 00:00:00 2001 From: goyuken Date: Sun, 28 Oct 2012 23:53:29 +0000 Subject: [PATCH] nes: gxrom: fix possible crash on 64K prg carts???? maybe? --- BizHawk.Emulation/Consoles/Nintendo/NES/Boards/GxROM.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/GxROM.cs b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/GxROM.cs index 1a3c1bb470..d3a4edbce7 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/GxROM.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/NES/Boards/GxROM.cs @@ -41,7 +41,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo return false; } - prg_mask = (Cart.prg_size/8/2) - 1; + prg_mask = (Cart.prg_size / 32) - 1; chr_mask = (Cart.chr_size / 8) - 1; SetMirrorType(Cart.pad_h, Cart.pad_v);