Skip to content

Commit

Permalink
Revert "Don't do ordered compares against pointers [Steel01]"
Browse files Browse the repository at this point in the history
This reverts commit e044677.
  • Loading branch information
barbudreadmon committed Feb 17, 2020
1 parent e044677 commit 96ea2cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/burn/drv/neogeo/d_neogeo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/burn/drv/taito/d_taitomisc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();
}
Expand Down

0 comments on commit 96ea2cc

Please sign in to comment.