mirror of
https://github.com/libretro/FBNeo.git
synced 2025-02-25 20:40:37 +00:00
deco16 rowscroll off-by-1, caveman ninja timers not running in the frame
This commit is contained in:
parent
fca6648d79
commit
1916177726
@ -2246,7 +2246,8 @@ static INT32 CninjaFrame()
|
||||
for (INT32 i = 0; i < nInterleave; i++)
|
||||
{
|
||||
nCyclesDone[0] += SekRun(nCyclesTotal[0] / nInterleave);
|
||||
nCyclesDone[1] += h6280Run(nCyclesTotal[1] / nInterleave);
|
||||
//nCyclesDone[1] += h6280Run(nCyclesTotal[1] / nInterleave);
|
||||
BurnTimerUpdate((i + 1) * nCyclesTotal[1] / nInterleave);
|
||||
|
||||
if (irq_timer == i) {
|
||||
SekSetIRQLine((irq_mask & 0x10) ? 3 : 4, CPU_IRQSTATUS_ACK);
|
||||
|
@ -580,7 +580,7 @@ static void pf_update(INT32 tmap, INT32 scrollx, INT32 scrolly, UINT16 *rowscrol
|
||||
INT32 xscroll = scrollx + deco16_global_x_offset + deco16_scroll_offset[tmap][size/16][0];
|
||||
|
||||
for (INT32 r = 0; r < rows; r++) {
|
||||
deco16_scroll_x[tmap][r & 0x1ff] = xscroll + BURN_ENDIAN_SWAP_INT16(rowscroll[r]);
|
||||
deco16_scroll_x[tmap][r & 0x1ff] = xscroll + BURN_ENDIAN_SWAP_INT16(rowscroll[r+1]);
|
||||
}
|
||||
|
||||
if (~control1 & 0x20) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user