deco16 rowscroll off-by-1, caveman ninja timers not running in the frame

This commit is contained in:
dinkc64 2015-10-13 02:04:29 +00:00
parent fca6648d79
commit 1916177726
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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) {