From c5fd3aaa790bae7a1c49499c2de95a6beaa176f8 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 19 Oct 2009 20:06:56 +0000 Subject: [PATCH] fix a bug in mapper 43 using u8 to count irqs and comparing to 0xFFF --- src/boards/43.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/boards/43.cpp b/src/boards/43.cpp index 196f6aa6..c6fb3886 100644 --- a/src/boards/43.cpp +++ b/src/boards/43.cpp @@ -18,14 +18,17 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +//ccording to nestopia, BTL_SMB2_C, otherwise known as UNL-SMB2J + #include "mapinc.h" static uint8 reg; -static uint8 IRQCount, IRQa; +static uint8 IRQa; +static uint32 IRQCount; static SFORMAT StateRegs[]= { - {&IRQCount, 1, "IRQC"}, + {&IRQCount, 4, "IRQC"}, {&IRQa, 1, "IRQA"}, {®, 1, "REG"}, {0}