irem/d_m92.cpp: more Ninja Baseball Batman-specific fixes
This commit is contained in:
parent
da91ac80a5
commit
67f2cacf41
|
@ -3,7 +3,6 @@
|
||||||
// Original port from MAME by OopsWare
|
// Original port from MAME by OopsWare
|
||||||
|
|
||||||
/*
|
/*
|
||||||
save state
|
|
||||||
ssoldier graphics
|
ssoldier graphics
|
||||||
ym sound is slow...
|
ym sound is slow...
|
||||||
background alignment (bmasters, inthunt)
|
background alignment (bmasters, inthunt)
|
||||||
|
@ -2010,7 +2009,7 @@ static void scanline_interrupts(INT32 prev, INT32 segment, INT32 scanline)
|
||||||
{
|
{
|
||||||
if (m92_sprite_buffer_timer) {
|
if (m92_sprite_buffer_timer) {
|
||||||
memcpy (DrvSprBuf, DrvSprRAM, 0x800);
|
memcpy (DrvSprBuf, DrvSprRAM, 0x800);
|
||||||
if (m92_kludge != 4) nCyclesDone[0] += VezRun(347);
|
if (m92_kludge != 4) nCyclesDone[0] += VezRun(347); // nbbatman: fix for random lockups during gameplay
|
||||||
m92_sprite_buffer_busy = 0x80;
|
m92_sprite_buffer_busy = 0x80;
|
||||||
VezSetIRQLineAndVector(0, (m92_irq_vectorbase + 4)/4, VEZ_IRQSTATUS_ACK);
|
VezSetIRQLineAndVector(0, (m92_irq_vectorbase + 4)/4, VEZ_IRQSTATUS_ACK);
|
||||||
nCyclesDone[0] += VezRun(10);
|
nCyclesDone[0] += VezRun(10);
|
||||||
|
@ -2029,7 +2028,7 @@ static void scanline_interrupts(INT32 prev, INT32 segment, INT32 scanline)
|
||||||
}
|
}
|
||||||
|
|
||||||
VezSetIRQLineAndVector(0, (m92_irq_vectorbase + 8)/4, VEZ_IRQSTATUS_ACK);
|
VezSetIRQLineAndVector(0, (m92_irq_vectorbase + 8)/4, VEZ_IRQSTATUS_ACK);
|
||||||
nCyclesDone[0] += VezRun((m92_kludge == 4) ? 20 : 10);
|
nCyclesDone[0] += VezRun((m92_kludge == 4) ? 20 : 10); // nbbatman: gets rid of flashes in intro sequence
|
||||||
VezSetIRQLineAndVector(0, (m92_irq_vectorbase + 8)/4, VEZ_IRQSTATUS_NONE);
|
VezSetIRQLineAndVector(0, (m92_irq_vectorbase + 8)/4, VEZ_IRQSTATUS_NONE);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2044,6 +2043,7 @@ static void scanline_interrupts(INT32 prev, INT32 segment, INT32 scanline)
|
||||||
DrvDraw();
|
DrvDraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m92_kludge == 4) nCyclesDone[0] += VezRun(1200); // nbbatman: gets rid of flash after IREM logo fades out
|
||||||
VezSetIRQLineAndVector(0, (m92_irq_vectorbase + 0)/4, VEZ_IRQSTATUS_ACK);
|
VezSetIRQLineAndVector(0, (m92_irq_vectorbase + 0)/4, VEZ_IRQSTATUS_ACK);
|
||||||
nCyclesDone[0] += VezRun(10);
|
nCyclesDone[0] += VezRun(10);
|
||||||
VezSetIRQLineAndVector(0, (m92_irq_vectorbase + 0)/4, VEZ_IRQSTATUS_NONE);
|
VezSetIRQLineAndVector(0, (m92_irq_vectorbase + 0)/4, VEZ_IRQSTATUS_NONE);
|
||||||
|
|
Loading…
Reference in New Issue