diff --git a/src/burn/drv/neogeo/d_neogeo.cpp b/src/burn/drv/neogeo/d_neogeo.cpp index 520d282ae9..fe65fbe04c 100644 --- a/src/burn/drv/neogeo/d_neogeo.cpp +++ b/src/burn/drv/neogeo/d_neogeo.cpp @@ -1299,7 +1299,7 @@ static pSekWriteWordHandler pSMABankswitchHandler[MAX_SLOT] = { NULL, }; void NeoSMABankswitch() { SekMapMemory(Neo68KROMActive + nNeo68KROMBank, 0x200000, 0x2FE3FF, MAP_ROM); - if (nNeoSMARNGAddress[nNeoActiveSlot][0] != NULL || nNeoSMARNGAddress[nNeoActiveSlot][1] != NULL) { + if (nNeoSMARNGAddress[nNeoActiveSlot][0] > 0 || nNeoSMARNGAddress[nNeoActiveSlot][1] > 0) { SekMapMemory(Neo68KROMActive + nNeo68KROMBank + 0x0FE800, 0x2FE800, 0x2FFBFF, MAP_ROM); } else { SekMapMemory(Neo68KROMActive + nNeo68KROMBank + 0x0FE800, 0x2FE800, 0x2FFFFF, MAP_ROM); diff --git a/src/burn/drv/taito/d_taitomisc.cpp b/src/burn/drv/taito/d_taitomisc.cpp index 1909cbe4e5..76d8320f6f 100644 --- a/src/burn/drv/taito/d_taitomisc.cpp +++ b/src/burn/drv/taito/d_taitomisc.cpp @@ -6044,7 +6044,7 @@ static INT32 TopspeedFrame() nNext = (i + 1) * nTaitoCyclesTotal[nCurrentCPU] / nInterleave; nTaitoCyclesSegment = nNext - nTaitoCyclesDone[nCurrentCPU]; nTaitoCyclesDone[nCurrentCPU] += SekRun(nTaitoCyclesSegment); - if (i == (nInterleave - 1) && (GetCurrentFrame() != NULL)) SekSetIRQLine(6, CPU_IRQSTATUS_AUTO); + if (i == (nInterleave - 1) && (GetCurrentFrame() > 0)) SekSetIRQLine(6, CPU_IRQSTATUS_AUTO); if (i == (nInterleave - 3)) SekSetIRQLine(5, CPU_IRQSTATUS_AUTO); SekClose(); @@ -6055,7 +6055,7 @@ static INT32 TopspeedFrame() nNext = (i + 1) * nTaitoCyclesTotal[nCurrentCPU] / nInterleave; nTaitoCyclesSegment = nNext - nTaitoCyclesDone[nCurrentCPU]; nTaitoCyclesDone[nCurrentCPU] += SekRun(nTaitoCyclesSegment); - if (i == (nInterleave - 1) && (GetCurrentFrame() != NULL)) SekSetIRQLine(6, CPU_IRQSTATUS_AUTO); + if (i == (nInterleave - 1) && (GetCurrentFrame() > 0)) SekSetIRQLine(6, CPU_IRQSTATUS_AUTO); if (i == (nInterleave - 3)) SekSetIRQLine(TaitoIrqLine, CPU_IRQSTATUS_AUTO); SekClose(); }