diff --git a/src/boards/416.c b/src/boards/416.c index 8c04152..ba0eb2c 100644 --- a/src/boards/416.c +++ b/src/boards/416.c @@ -85,6 +85,12 @@ static void M416Power(void) { SetWriteHandler(0x8000, 0x8000, M416Write8); } +static void M416Reset(void) { + reg = smb2j_reg = IRQa = IRQCount = 0; + RAM[0x163] =0; + Sync(); +} + static void FP_FASTAPASS(1) M416IRQHook(int a) { if (IRQa) { if (IRQCount < 4096) @@ -102,6 +108,7 @@ static void StateRestore(int version) { void Mapper416_Init(CartInfo *info) { info->Power = M416Power; + info->Reset = M416Reset; MapIRQHook = M416IRQHook; GameStateRestore = StateRestore; AddExState(®, 1, 0, "REGS");