diff --git a/blitter.cpp b/blitter.cpp index 5c760b44..8a0b1600 100644 --- a/blitter.cpp +++ b/blitter.cpp @@ -453,7 +453,7 @@ static void blitter_end(void) static void blitter_done_all(bool all) { blt_info.blit_main = 0; - blt_info.blit_queued = BLITTER_MAX_PIPELINED_CYCLES; + blt_info.blit_queued = blitter_cycle_exact ? BLITTER_MAX_PIPELINED_CYCLES : 0; blt_info.finishcycle_dmacon = get_cycles(); blt_info.finishcycle_copper = get_cycles() + 1 * CYCLE_UNIT; blitter_interrupt(); @@ -2034,6 +2034,7 @@ void do_blitter(int copper, uaecptr pc) blit_totalcyclecounter = 0; blt_info.blit_pending = 1; blt_info.blit_count_done = 0; + blt_info.blit_queued = 0; blitter_start_init(); diff --git a/cfgfile.cpp b/cfgfile.cpp index c6db413a..d7746244 100644 --- a/cfgfile.cpp +++ b/cfgfile.cpp @@ -2478,7 +2478,7 @@ void cfgfile_save_options (struct zfile *f, struct uae_prefs *p, int type) cfgfile_dwrite_strarr(f, _T("gfx_overscanmode"), overscanmodes, p->gfx_overscanmode); cfgfile_dwrite(f, _T("gfx_monitorblankdelay"), _T("%d"), p->gfx_monitorblankdelay); cfgfile_dwrite(f, _T("gfx_rotation"), _T("%d"), p->gfx_rotation); - cfgfile_dwrite (f, _T("gfx_bordercolor"), _T("%08x"), p->gfx_bordercolor); + cfgfile_dwrite (f, _T("gfx_bordercolor"), _T("0x%08x"), p->gfx_bordercolor); #ifdef GFXFILTER for (int j = 0; j < MAX_FILTERDATA; j++) { diff --git a/cia.cpp b/cia.cpp index ab358662..5f1f7152 100644 --- a/cia.cpp +++ b/cia.cpp @@ -1027,10 +1027,6 @@ static void resetwarning_check(void) } } -void CIA_hsync_prehandler (void) -{ -} - void cia_keyreq(uae_u8 code) { #if KB_DEBUG diff --git a/cpuemu_0.cpp b/cpuemu_0.cpp index a1f821b7..5ebbbf7f 100644 --- a/cpuemu_0.cpp +++ b/cpuemu_0.cpp @@ -37636,7 +37636,7 @@ uae_u32 REGPARAM2 op_e8c0_0_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -37831,7 +37831,7 @@ uae_u32 REGPARAM2 op_e9c0_0_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -38034,14 +38034,14 @@ uae_u32 REGPARAM2 op_eac0_0_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpc(4); return (4 * CYCLE_UNIT / 2 + count_cycles) | (((1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4) << 16); } @@ -38192,7 +38192,7 @@ uae_u32 REGPARAM2 op_ebc0_0_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -38395,14 +38395,14 @@ uae_u32 REGPARAM2 op_ecc0_0_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpc(4); return (4 * CYCLE_UNIT / 2 + count_cycles) | (((1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4) << 16); } @@ -38554,7 +38554,7 @@ uae_u32 REGPARAM2 op_edc0_0_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -38780,14 +38780,14 @@ uae_u32 REGPARAM2 op_eec0_0_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpc(4); return (4 * CYCLE_UNIT / 2 + count_cycles) | (((1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4) << 16); } @@ -38938,7 +38938,7 @@ uae_u32 REGPARAM2 op_efc0_0_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -38948,7 +38948,7 @@ uae_u32 REGPARAM2 op_efc0_0_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpc(4); return (4 * CYCLE_UNIT / 2 + count_cycles) | (((1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4) << 16); } diff --git a/cpuemu_20.cpp b/cpuemu_20.cpp index 6e6aaa6d..e6fc1305 100644 --- a/cpuemu_20.cpp +++ b/cpuemu_20.cpp @@ -39377,7 +39377,7 @@ uae_u32 REGPARAM2 op_e8c0_20_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -39580,7 +39580,7 @@ uae_u32 REGPARAM2 op_e9c0_20_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -39791,14 +39791,14 @@ uae_u32 REGPARAM2 op_eac0_20_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_020_prefetch(4); m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; @@ -39955,7 +39955,7 @@ uae_u32 REGPARAM2 op_ebc0_20_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -40166,14 +40166,14 @@ uae_u32 REGPARAM2 op_ecc0_20_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_020_prefetch(4); m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; @@ -40331,7 +40331,7 @@ uae_u32 REGPARAM2 op_edc0_20_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -40565,14 +40565,14 @@ uae_u32 REGPARAM2 op_eec0_20_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_020_prefetch(4); m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; @@ -40729,7 +40729,7 @@ uae_u32 REGPARAM2 op_efc0_20_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -40739,7 +40739,7 @@ uae_u32 REGPARAM2 op_efc0_20_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_020_prefetch(4); m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; diff --git a/cpuemu_21.cpp b/cpuemu_21.cpp index ca97a670..85b7900c 100644 --- a/cpuemu_21.cpp +++ b/cpuemu_21.cpp @@ -42622,7 +42622,7 @@ void REGPARAM2 op_e8c0_21_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -42841,7 +42841,7 @@ void REGPARAM2 op_e9c0_21_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -43068,14 +43068,14 @@ void REGPARAM2 op_eac0_21_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_ce020_prefetch_opcode(4); m68k_incpci(4); return; @@ -43244,7 +43244,7 @@ void REGPARAM2 op_ebc0_21_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -43471,14 +43471,14 @@ void REGPARAM2 op_ecc0_21_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_ce020_prefetch_opcode(4); m68k_incpci(4); return; @@ -43648,7 +43648,7 @@ void REGPARAM2 op_edc0_21_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -43898,14 +43898,14 @@ void REGPARAM2 op_eec0_21_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_ce020_prefetch_opcode(4); m68k_incpci(4); return; @@ -44074,7 +44074,7 @@ void REGPARAM2 op_efc0_21_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -44084,7 +44084,7 @@ void REGPARAM2 op_efc0_21_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_ce020_prefetch_opcode(4); m68k_incpci(4); return; diff --git a/cpuemu_22.cpp b/cpuemu_22.cpp index a5b3f117..ce9603fe 100644 --- a/cpuemu_22.cpp +++ b/cpuemu_22.cpp @@ -39378,7 +39378,7 @@ uae_u32 REGPARAM2 op_e8c0_22_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -39581,7 +39581,7 @@ uae_u32 REGPARAM2 op_e9c0_22_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -39792,14 +39792,14 @@ uae_u32 REGPARAM2 op_eac0_22_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_030_prefetch(4); m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; @@ -39956,7 +39956,7 @@ uae_u32 REGPARAM2 op_ebc0_22_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -40167,14 +40167,14 @@ uae_u32 REGPARAM2 op_ecc0_22_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_030_prefetch(4); m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; @@ -40332,7 +40332,7 @@ uae_u32 REGPARAM2 op_edc0_22_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -40566,14 +40566,14 @@ uae_u32 REGPARAM2 op_eec0_22_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_030_prefetch(4); m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; @@ -40730,7 +40730,7 @@ uae_u32 REGPARAM2 op_efc0_22_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -40740,7 +40740,7 @@ uae_u32 REGPARAM2 op_efc0_22_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_030_prefetch(4); m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; diff --git a/cpuemu_23.cpp b/cpuemu_23.cpp index 75fafb4d..8a1fed69 100644 --- a/cpuemu_23.cpp +++ b/cpuemu_23.cpp @@ -42623,7 +42623,7 @@ void REGPARAM2 op_e8c0_23_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -42842,7 +42842,7 @@ void REGPARAM2 op_e9c0_23_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -43069,14 +43069,14 @@ void REGPARAM2 op_eac0_23_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_ce030_prefetch_opcode(4); m68k_incpci(4); return; @@ -43245,7 +43245,7 @@ void REGPARAM2 op_ebc0_23_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -43472,14 +43472,14 @@ void REGPARAM2 op_ecc0_23_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_ce030_prefetch_opcode(4); m68k_incpci(4); return; @@ -43649,7 +43649,7 @@ void REGPARAM2 op_edc0_23_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -43899,14 +43899,14 @@ void REGPARAM2 op_eec0_23_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_ce030_prefetch_opcode(4); m68k_incpci(4); return; @@ -44075,7 +44075,7 @@ void REGPARAM2 op_efc0_23_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -44085,7 +44085,7 @@ void REGPARAM2 op_efc0_23_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_word_ce030_prefetch_opcode(4); m68k_incpci(4); return; diff --git a/cpuemu_24.cpp b/cpuemu_24.cpp index eb179dec..8eb306d7 100644 --- a/cpuemu_24.cpp +++ b/cpuemu_24.cpp @@ -37545,7 +37545,7 @@ void REGPARAM2 op_e8c0_24_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -37740,7 +37740,7 @@ void REGPARAM2 op_e9c0_24_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -37943,14 +37943,14 @@ void REGPARAM2 op_eac0_24_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return; } @@ -38101,7 +38101,7 @@ void REGPARAM2 op_ebc0_24_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -38304,14 +38304,14 @@ void REGPARAM2 op_ecc0_24_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return; } @@ -38463,7 +38463,7 @@ void REGPARAM2 op_edc0_24_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -38689,14 +38689,14 @@ void REGPARAM2 op_eec0_24_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return; } @@ -38847,7 +38847,7 @@ void REGPARAM2 op_efc0_24_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -38857,7 +38857,7 @@ void REGPARAM2 op_efc0_24_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return; } diff --git a/cpuemu_31.cpp b/cpuemu_31.cpp index 4256ff0d..4fee5a36 100644 --- a/cpuemu_31.cpp +++ b/cpuemu_31.cpp @@ -40604,7 +40604,7 @@ uae_u32 REGPARAM2 op_e8c0_31_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -40799,7 +40799,7 @@ uae_u32 REGPARAM2 op_e9c0_31_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -41002,14 +41002,14 @@ uae_u32 REGPARAM2 op_eac0_31_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; } @@ -41160,7 +41160,7 @@ uae_u32 REGPARAM2 op_ebc0_31_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -41363,14 +41363,14 @@ uae_u32 REGPARAM2 op_ecc0_31_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; } @@ -41522,7 +41522,7 @@ uae_u32 REGPARAM2 op_edc0_31_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -41748,14 +41748,14 @@ uae_u32 REGPARAM2 op_eec0_31_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; } @@ -41906,7 +41906,7 @@ uae_u32 REGPARAM2 op_efc0_31_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -41916,7 +41916,7 @@ uae_u32 REGPARAM2 op_efc0_31_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; } diff --git a/cpuemu_32.cpp b/cpuemu_32.cpp index 28d19a56..432f370f 100644 --- a/cpuemu_32.cpp +++ b/cpuemu_32.cpp @@ -41364,7 +41364,7 @@ uae_u32 REGPARAM2 op_e8c0_32_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -41559,7 +41559,7 @@ uae_u32 REGPARAM2 op_e9c0_32_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -41762,14 +41762,14 @@ uae_u32 REGPARAM2 op_eac0_32_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; } @@ -41920,7 +41920,7 @@ uae_u32 REGPARAM2 op_ebc0_32_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -42123,14 +42123,14 @@ uae_u32 REGPARAM2 op_ecc0_32_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; } @@ -42282,7 +42282,7 @@ uae_u32 REGPARAM2 op_edc0_32_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -42508,14 +42508,14 @@ uae_u32 REGPARAM2 op_eec0_32_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; } @@ -42666,7 +42666,7 @@ uae_u32 REGPARAM2 op_efc0_32_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -42676,7 +42676,7 @@ uae_u32 REGPARAM2 op_efc0_32_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; } diff --git a/cpuemu_33.cpp b/cpuemu_33.cpp index 2d0a1663..069fb662 100644 --- a/cpuemu_33.cpp +++ b/cpuemu_33.cpp @@ -38944,7 +38944,7 @@ uae_u32 REGPARAM2 op_e8c0_33_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -39139,7 +39139,7 @@ uae_u32 REGPARAM2 op_e9c0_33_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -39342,14 +39342,14 @@ uae_u32 REGPARAM2 op_eac0_33_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; } @@ -39500,7 +39500,7 @@ uae_u32 REGPARAM2 op_ebc0_33_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -39703,14 +39703,14 @@ uae_u32 REGPARAM2 op_ecc0_33_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; } @@ -39862,7 +39862,7 @@ uae_u32 REGPARAM2 op_edc0_33_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -40088,14 +40088,14 @@ uae_u32 REGPARAM2 op_eec0_33_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; } @@ -40246,7 +40246,7 @@ uae_u32 REGPARAM2 op_efc0_33_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -40256,7 +40256,7 @@ uae_u32 REGPARAM2 op_efc0_33_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; } diff --git a/cpuemu_34.cpp b/cpuemu_34.cpp index bd48c322..dd66fab7 100644 --- a/cpuemu_34.cpp +++ b/cpuemu_34.cpp @@ -43173,7 +43173,7 @@ uae_u32 REGPARAM2 op_e8c0_34_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -43376,7 +43376,7 @@ uae_u32 REGPARAM2 op_e9c0_34_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -43587,14 +43587,14 @@ uae_u32 REGPARAM2 op_eac0_34_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_iword_mmu030c_opcode_state(4); m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; @@ -43751,7 +43751,7 @@ uae_u32 REGPARAM2 op_ebc0_34_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -43962,14 +43962,14 @@ uae_u32 REGPARAM2 op_ecc0_34_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_iword_mmu030c_opcode_state(4); m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; @@ -44127,7 +44127,7 @@ uae_u32 REGPARAM2 op_edc0_34_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -44361,14 +44361,14 @@ uae_u32 REGPARAM2 op_eec0_34_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_iword_mmu030c_opcode_state(4); m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; @@ -44525,7 +44525,7 @@ uae_u32 REGPARAM2 op_efc0_34_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -44535,7 +44535,7 @@ uae_u32 REGPARAM2 op_efc0_34_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_iword_mmu030c_opcode_state(4); m68k_incpci(4); return (1 * 4 * CYCLE_UNIT / 2 + count_cycles) * 4; diff --git a/cpuemu_35.cpp b/cpuemu_35.cpp index f39c2d13..608925e6 100644 --- a/cpuemu_35.cpp +++ b/cpuemu_35.cpp @@ -46416,7 +46416,7 @@ void REGPARAM2 op_e8c0_35_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -46635,7 +46635,7 @@ void REGPARAM2 op_e9c0_35_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -46862,14 +46862,14 @@ void REGPARAM2 op_eac0_35_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_iword_mmu030c_opcode_state(4); m68k_incpci(4); return; @@ -47038,7 +47038,7 @@ void REGPARAM2 op_ebc0_35_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -47265,14 +47265,14 @@ void REGPARAM2 op_ecc0_35_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_iword_mmu030c_opcode_state(4); m68k_incpci(4); return; @@ -47442,7 +47442,7 @@ void REGPARAM2 op_edc0_35_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -47692,14 +47692,14 @@ void REGPARAM2 op_eec0_35_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_iword_mmu030c_opcode_state(4); m68k_incpci(4); return; @@ -47868,7 +47868,7 @@ void REGPARAM2 op_efc0_35_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -47878,7 +47878,7 @@ void REGPARAM2 op_efc0_35_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; regs.irc = get_iword_mmu030c_opcode_state(4); m68k_incpci(4); return; diff --git a/cpuemu_40.cpp b/cpuemu_40.cpp index f42c86a6..ee691796 100644 --- a/cpuemu_40.cpp +++ b/cpuemu_40.cpp @@ -35926,7 +35926,7 @@ uae_u32 REGPARAM2 op_e8c0_40_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -36113,7 +36113,7 @@ uae_u32 REGPARAM2 op_e9c0_40_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -36308,14 +36308,14 @@ uae_u32 REGPARAM2 op_eac0_40_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpc(4); return 0; } @@ -36460,7 +36460,7 @@ uae_u32 REGPARAM2 op_ebc0_40_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -36655,14 +36655,14 @@ uae_u32 REGPARAM2 op_ecc0_40_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpc(4); return 0; } @@ -36808,7 +36808,7 @@ uae_u32 REGPARAM2 op_edc0_40_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -37026,14 +37026,14 @@ uae_u32 REGPARAM2 op_eec0_40_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpc(4); return 0; } @@ -37178,7 +37178,7 @@ uae_u32 REGPARAM2 op_efc0_40_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -37188,7 +37188,7 @@ uae_u32 REGPARAM2 op_efc0_40_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpc(4); return 0; } diff --git a/cpuemu_50.cpp b/cpuemu_50.cpp index 895b10e4..8f3b7453 100644 --- a/cpuemu_50.cpp +++ b/cpuemu_50.cpp @@ -35980,7 +35980,7 @@ uae_u32 REGPARAM2 op_e8c0_50_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -36167,7 +36167,7 @@ uae_u32 REGPARAM2 op_e9c0_50_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -36362,14 +36362,14 @@ uae_u32 REGPARAM2 op_eac0_50_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = tmp ^ (0xffffffffu >> (32 - width)); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpc(4); return 0; } @@ -36514,7 +36514,7 @@ uae_u32 REGPARAM2 op_ebc0_50_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp = (uae_s32)tmp >> (32 - width); @@ -36709,14 +36709,14 @@ uae_u32 REGPARAM2 op_ecc0_50_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0; tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpc(4); return 0; } @@ -36862,7 +36862,7 @@ uae_u32 REGPARAM2 op_edc0_50_ff(uae_u32 opcode) uae_u32 offset2 = offset; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -37080,14 +37080,14 @@ uae_u32 REGPARAM2 op_eec0_50_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); SET_ZFLG(tmp == 0); SET_VFLG(0); SET_CFLG(0); tmp = 0xffffffffu >> (32 - width); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpc(4); return 0; } @@ -37232,7 +37232,7 @@ uae_u32 REGPARAM2 op_efc0_50_ff(uae_u32 opcode) int width = (((extra & 0x20 ? m68k_dreg(regs, extra & 7) : extra) - 1) & 0x1f) + 1; uae_u32 tmp = m68k_dreg(regs, dstreg); offset &= 0x1f; - tmp = (tmp << offset) | (tmp >> (32 - offset)); + if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset)); bdata[0] = tmp & ((1 << (32 - width)) - 1); SET_ALWAYS_NFLG(((uae_s32)tmp) < 0 ? 1 : 0); tmp >>= (32 - width); @@ -37242,7 +37242,7 @@ uae_u32 REGPARAM2 op_efc0_50_ff(uae_u32 opcode) SET_ALWAYS_NFLG(tmp & (1 << (width - 1)) ? 1 : 0); SET_ZFLG(tmp == 0); tmp = bdata[0] | (tmp << (32 - width)); - m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset)); + m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp; m68k_incpc(4); return 0; } diff --git a/custom.cpp b/custom.cpp index f39b6d36..d38f9a64 100644 --- a/custom.cpp +++ b/custom.cpp @@ -77,7 +77,7 @@ #define SPRBORDER 0 -#define EXTRAWIDTH_BROADCAST 15 +#define EXTRAWIDTH_BROADCAST 7 #define EXTRAHEIGHT_BROADCAST_TOP 0 #define EXTRAHEIGHT_BROADCAST_BOTTOM 0 #define EXTRAWIDTH_EXTREME 38 @@ -119,6 +119,9 @@ static uae_u32 custom_state_flags; static int not_safe_mode; static bool dmal_next; +#define MAX_SCANDOUBLED_LINES 1000 +static uae_u32 scandoubled_bpl_ptr[MAX_SCANDOUBLED_LINES][8][2]; + static evt_t blitter_dma_change_cycle, copper_dma_change_cycle, sprite_dma_change_cycle_on, sprite_dma_change_cycle_off; static void empty_pipeline(void) @@ -340,6 +343,7 @@ static int linear_vpos_vsync; static int linear_display_vpos; int current_linear_vpos, current_linear_hpos; static int display_hstart_cyclewait, display_hstart_cyclewait_cnt, display_hstart_cyclewait_end; +static int display_hstart_cyclewait_skip, display_hstart_cyclewait_skip2; static bool display_hstart_cyclewait_start; static int agnus_trigger_cck; static int linear_vpos_changes; @@ -355,7 +359,7 @@ static bool graphicsbuffer_retry; static int cia_hsync; static int nosignal_cnt, nosignal_status; static bool nosignal_trigger; -static int issyncstopped_count; +static bool syncs_stopped; int display_reset; static bool initial_frame; static int plffirstline, plflastline; @@ -365,7 +369,6 @@ static int plffirstline, plflastline; * hstop_handler() completely but it is not * worth the trouble.. */ -static int vpos_previous, hpos_previous; static int vpos_lpen, hpos_lpen, hhpos_lpen, lightpen_triggered; int lightpen_x[2], lightpen_y[2]; int lightpen_cx[2], lightpen_cy[2], lightpen_active, lightpen_enabled, lightpen_enabled2; @@ -542,6 +545,7 @@ static uae_u16 bplcon0_saved, bplcon1_saved, bplcon2_saved; static uae_u16 bplcon3_saved, bplcon4_saved; static uae_u16 ddfstrt_saved, ddfstop_saved, diwhigh_saved; static uae_u32 saved_color_regs_aga[32]; +static struct color_entry agnus_colors; static int varsync_changed, varsync_maybe_changed[2]; static bool programmed_register_accessed; static int varhblank_lines, varhblank_val[2]; @@ -598,8 +602,7 @@ static int sprite_sprctlmask; int sprite_buffer_res; static uae_s16 bpl1mod, bpl2mod; -static uaecptr prevbpl[2][MAXVPOS][MAX_PLANES]; -static uaecptr bplpt[MAX_PLANES], bplptx[MAX_PLANES]; +static uaecptr bplpt[MAX_PLANES]; uae_u16 bplcon0; static uae_u16 bplcon1, bplcon2, bplcon3, bplcon4; @@ -663,6 +666,7 @@ enum copper_states { COP_skip1, COP_strobe_vbl_delay, COP_strobe_vbl_delay2, + COP_strobe_vbl_delay_nodma, COP_strobe_vbl_extra_delay1, COP_strobe_vbl_extra_delay2, COP_strobe_vbl_extra_delay3, @@ -1096,8 +1100,9 @@ static void update_mirrors(void) bool aga_mode_new = (currprefs.chipset_mask & CSMASK_AGA) != 0; if (aga_mode_new && !aga_mode) { memcpy(denise_colors.color_regs_aga, saved_color_regs_aga, sizeof(saved_color_regs_aga)); + memcpy(agnus_colors.color_regs_aga, saved_color_regs_aga, sizeof(saved_color_regs_aga)); } else if (!aga_mode_new && aga_mode) { - memcpy(saved_color_regs_aga, denise_colors.color_regs_aga, sizeof(saved_color_regs_aga)); + memcpy(saved_color_regs_aga, agnus_colors.color_regs_aga, sizeof(saved_color_regs_aga)); } aga_mode = aga_mode_new; ecs_agnus = (currprefs.chipset_mask & CSMASK_ECS_AGNUS) != 0; @@ -1120,7 +1125,7 @@ static void update_mirrors(void) } if (aga_mode) { for (int i = 0; i < 256; i++) { - denise_colors.acolors[i] = getxcolor(denise_colors.color_regs_aga[i]); + agnus_colors.acolors[i] = denise_colors.acolors[i] = getxcolor(denise_colors.color_regs_aga[i]); } } ddf_mask = ecs_agnus ? 0xfe : 0xfc; @@ -1135,6 +1140,7 @@ void notice_new_xcolors(void) { update_mirrors(); docols(&denise_colors); + docols(&agnus_colors); } static uae_u16 get_strobe_reg(int slot) @@ -1548,10 +1554,8 @@ void compute_framesync(void) if (currprefs.gfx_overscanmode >= OVERSCANMODE_ULTRA) { vidinfo->drawbuffer.inwidth = current_linear_hpos << (res2 + 1); - } else if (currprefs.gfx_overscanmode >= OVERSCANMODE_EXTREME) { - vidinfo->drawbuffer.inwidth = (current_linear_hpos - (display_hstart_cyclewait_end + display_hstart_cyclewait) + 3) << (res2 + 1); } else { - vidinfo->drawbuffer.inwidth = (current_linear_hpos - (display_hstart_cyclewait_end + display_hstart_cyclewait) + 1) << (res2 + 1); + vidinfo->drawbuffer.inwidth = (current_linear_hpos - (display_hstart_cyclewait_skip + display_hstart_cyclewait_skip2)) << (res2 + 1); } vidinfo->drawbuffer.inwidth2 = vidinfo->drawbuffer.inwidth; vidinfo->drawbuffer.extrawidth = -2; @@ -1697,15 +1701,16 @@ static void init_beamcon0(void) } } else { display_hstart_cyclewait = 0; + display_hstart_cyclewait_end = 0; if (currprefs.gfx_overscanmode == OVERSCANMODE_BROADCAST) { - display_hstart_cyclewait = 30; - display_hstart_cyclewait_end = 6; + display_hstart_cyclewait = 32; + display_hstart_cyclewait_end = 9; } else if (currprefs.gfx_overscanmode <= OVERSCANMODE_OVERSCAN) { display_hstart_cyclewait = 32; - display_hstart_cyclewait_end = 7; + display_hstart_cyclewait_end = 10; } else if (currprefs.gfx_overscanmode == OVERSCANMODE_EXTREME) { display_hstart_cyclewait = 22; - display_hstart_cyclewait_end = 0; + display_hstart_cyclewait_end = 5; } } @@ -1733,6 +1738,9 @@ static void init_beamcon0(void) // calculate max possible display width in lores pixels if ((beamcon0 & BEAMCON0_VARBEAMEN) && beamcon0_has_hsync) { int hsstrt_delay = 2; + int hb = 0; + display_hstart_cyclewait = 0; + display_hstart_cyclewait_end = 0; // assume VGA-like monitor if VARBEAMEN if (currprefs.gfx_overscanmode >= OVERSCANMODE_ULTRA) { maxhpos_display = maxhpos + 7; @@ -1750,7 +1758,7 @@ static void init_beamcon0(void) int hbstrtx, hbstopx; if (exthblanken) { - int hb = 1; + hb = 1; hbstrtx = (hbstrt & 0xff) * 2; hbstopx = (hbstop & 0xff) * 2; if (aga_mode) { @@ -1787,30 +1795,34 @@ static void init_beamcon0(void) } #endif maxhpos_display = maxhpos - ((hb + 1) / 2); - hsstop_detect = hbstopx / 2; + display_hstart_cyclewait_end += hb / 2 - 4; + } else { // hardwired hbstrtx = 0x10; hbstopx = ecs_denise ? 0x5d : 0x5e; - int hb = hbstopx - hbstrtx; + hb = hbstopx - hbstrtx; maxhpos_display = maxhpos - (hb / 2); if (beamcon0_has_hsync) { hsstop_detect = hsstrt * 2; } else { hsstop_detect = hsstop_detect2; } + hb = 0; } - display_hstart_cyclewait = 0; - display_hstart_cyclewait_end = 0; if (hbstopx / 2 > hsstrt && (hbstopx / 2 - hsstrt < maxhpos / 2)) { display_hstart_cyclewait = hbstopx / 2 - hsstrt; } else if (hsstrt - hbstopx / 2 < maxhpos / 2) { display_hstart_cyclewait = hsstrt - hbstopx / 2; } + if (hb) { + display_hstart_cyclewait_end = hb / 2 - display_hstart_cyclewait; + display_hstart_cyclewait += 1; + } display_hstart_cyclewait += hsstrt_delay; if (currprefs.gfx_overscanmode >= OVERSCANMODE_EXTREME) { @@ -1819,16 +1831,12 @@ static void init_beamcon0(void) hsstop_detect -= (diff / 2) * 2; } maxhpos_display = maxhpos - 2; - //maxvpos_display_vsync += 2; - } else if (currprefs.gfx_overscanmode == OVERSCANMODE_BROADCAST) { - maxhpos_display += 8 * EXTRAWIDTH_BROADCAST; - display_hstart_cyclewait -= 4; - display_hstart_cyclewait_end -= 4; - hsstop_detect -= 4; - //maxvpos_display_vsync++; } maxhpos_display *= 2; + if (display_hstart_cyclewait_end < 0) { + display_hstart_cyclewait_end = 0; + } } } else if (!(beamcon0 & BEAMCON0_VARBEAMEN)) { @@ -1869,7 +1877,7 @@ static void init_beamcon0(void) } else { maxvpos_display--; } - } else if (currprefs.gfx_overscanmode == OVERSCANMODE_BROADCAST) { + } else if (currprefs.gfx_overscanmode == OVERSCANMODE_EXTREME) { maxhpos_display += EXTRAWIDTH_EXTREME; hsstop_detect -= 4; } else if (currprefs.gfx_overscanmode == OVERSCANMODE_BROADCAST) { @@ -2000,6 +2008,11 @@ static void init_beamcon0(void) } minfirstline_linear = minfirstline - (vsync_startline > 0 ? vsync_startline : 0); + + int size = currprefs.gfx_overscanmode >= OVERSCANMODE_ULTRA ? 0 : 4; + display_hstart_cyclewait_skip2 = display_hstart_cyclewait_end; + display_hstart_cyclewait_skip = display_hstart_cyclewait - size; + display_hstart_cyclewait = size; } static void init_hz_reset(void) @@ -2218,28 +2231,29 @@ STATIC_INLINE int issyncstopped(uae_u16 con0) return (con0 & 2) && (!currprefs.genlock || currprefs.genlock_effects); } -STATIC_INLINE int GETVPOS(void) +static void setsyncstopped(void) { - return islightpentriggered() ? vpos_lpen : (issyncstopped(bplcon0) ? vpos_previous : vpos); + syncs_stopped = true; } -STATIC_INLINE int GETHPOS(void) + +static void checksyncstopped(uae_u16 con0) { - return islightpentriggered() ? hpos_lpen : (issyncstopped(bplcon0) ? hpos_previous : current_hpos()); + if (issyncstopped(con0)) { + if (currprefs.m68k_speed < 0) { + setsyncstopped(); + } + } else { + syncs_stopped = false; + } } -// fake changing hpos when rom genlock test runs and genlock is connected -static bool hsyncdelay(void) +STATIC_INLINE int GETVPOS(void) { - if (!currprefs.genlock || currprefs.genlock_effects) { - return false; - } - if (currprefs.cpu_memory_cycle_exact || currprefs.m68k_speed >= 0) { - return false; - } - if (bplcon0 == (0x0100 | 0x0002)) { - return true; - } - return false; + return islightpentriggered() ? vpos_lpen : vpos; +} +STATIC_INLINE int GETHPOS(void) +{ + return islightpentriggered() ? hpos_lpen : agnus_hpos; } static void setmaxhpos(void) @@ -2264,6 +2278,9 @@ static void incpos(uae_u16 *hpp, uae_u16 *vpp) uae_u16 hp = *hpp; uae_u16 vp = *vpp; + if (syncs_stopped) { + return; + } if (hp == 1) { vp++; if (vp == maxvpos + lof_store) { @@ -2320,7 +2337,6 @@ static uae_u16 VPOSR(void) vp |= lolr ? 0x80 : 0; } vp |= (lofr ? 0x8000 : 0) | csbit; - hsyncdelay(); #if 0 if (1 || (M68K_GETPC < 0x00f00000 || M68K_GETPC >= 0x10000000)) @@ -2392,18 +2408,11 @@ static uae_u16 VHPOSR(void) incpos(&hp, &vp); vp <<= 8; - - if (hsyncdelay()) { - // fake continuously changing hpos in fastest possible modes - hp = oldhp % maxhpos; - oldhp++; - } - vp |= hp; #if 0 if (M68K_GETPC < 0x00f00000 || M68K_GETPC >= 0x10000000) - write_log (_T("VPOS %04x %04x at %08x\n"), VPOSR (), vp, M68K_GETPC); + write_log (_T("VHPOSR %04x at %08x\n"), vp, M68K_GETPC); #endif return vp; } @@ -2859,28 +2868,32 @@ static void COPJMP(int num, int vblank) } else { // copper request done for next cycle if (vblank) { - cop_state.state = COP_strobe_vbl_delay; - cop_state.strobeip = cop1lc; - cop_state.strobe = 0; - struct rgabuf *r = read_rga_in(); - r->type |= CYCLE_COPPER; - r->copdat = 0; - if (!r->alloc) { - r->alloc = -1; - } + if (!is_copper_dma(false)) { + cop_state.state = COP_strobe_vbl_delay_nodma; + } else { + cop_state.state = COP_strobe_vbl_delay; + cop_state.strobeip = cop1lc; + cop_state.strobe = 0; + struct rgabuf *r = read_rga_in(); + r->type |= CYCLE_COPPER; + r->copdat = 0; + if (!r->alloc) { + r->alloc = -1; + } #if 1 - switch (cop_state.state_prev) - { - case copper_states::COP_read1: - // Wake up is delayed by 1 copper cycle if copper is currently loading words - cop_state.state = COP_strobe_vbl_extra_delay1; - break; - case copper_states::COP_read2: - // Wake up is delayed by 1 copper cycle if copper is currently loading words - cop_state.state = COP_strobe_vbl_extra_delay2; - break; - } + switch (cop_state.state_prev) + { + case copper_states::COP_read1: + // Wake up is delayed by 1 copper cycle if copper is currently loading words + cop_state.state = COP_strobe_vbl_extra_delay1; + break; + case copper_states::COP_read2: + // Wake up is delayed by 1 copper cycle if copper is currently loading words + cop_state.state = COP_strobe_vbl_extra_delay2; + break; + } #endif + } } else { if (copper_access) { cop_state.state = COP_strobe_delay1; @@ -3427,12 +3440,10 @@ void set_picasso_hack_rate(int hz) static void BPLxPTH(uae_u16 v, int num) { bplpt[num] = (bplpt[num] & 0x0000ffff) | ((uae_u32)v << 16); - bplptx[num] = (bplptx[num] & 0x0000ffff) | ((uae_u32)v << 16); } static void BPLxPTL(uae_u16 v, int num) { bplpt[num] = (bplpt[num] & 0xffff0000) | (v & 0x0000fffe); - bplptx[num] = (bplptx[num] & 0xffff0000) | (v & 0x0000fffe); } static uae_u16 BPLCON0_Agnus_mask(uae_u16 v) @@ -3445,13 +3456,27 @@ static uae_u16 BPLCON0_Agnus_mask(uae_u16 v) return v; } -static void BPLCON0_delayed(uae_u32 v) +static void BPLCON0_delayed(uae_u32 va) { - bplcon0 = v; + bplcon0 = va; check_harddis(); setup_fmodes(bplcon0); + + if ((va & 8) && !lightpen_triggered && agnus_vb_active) { + // setting lightpen bit immediately freezes VPOSR if inside vblank and not already frozen + hhpos_lpen = HHPOSR(); + lightpen_triggered = 1; + vpos_lpen = vpos; + hpos_lpen = agnus_hpos; + } + if (!(va & 8)) { + // clearing lightpen bit immediately returns VPOSR back to normal + lightpen_triggered = 0; + } + + checksyncstopped(va); } static void BPLCON0(uae_u16 v) @@ -3474,25 +3499,11 @@ static void BPLCON0(uae_u16 v) not_safe_mode &= ~1; } - if (!issyncstopped(va)) { - vpos_previous = vpos; - hpos_previous = agnus_hpos; - } - - if ((va & 8) && !lightpen_triggered && agnus_vb_active) { - // setting lightpen bit immediately freezes VPOSR if inside vblank and not already frozen - hhpos_lpen = HHPOSR(); - lightpen_triggered = 1; - vpos_lpen = vpos; - hpos_lpen = agnus_hpos; - } - if (!(va & 8)) { - // clearing lightpen bit immediately returns VPOSR back to normal - lightpen_triggered = 0; + if (copper_access || (!copper_access && currprefs.cpu_memory_cycle_exact)) { + pipelined_custom_write(BPLCON0_delayed, v, 2); + } else { + BPLCON0_delayed(v); } - -// BPLCON0_delayed(v); - pipelined_custom_write(BPLCON0_delayed, v, 2); } static void BPLCON1(uae_u16 v) @@ -4021,10 +4032,10 @@ void dump_aga_custom(void) c2 = c1 + 64; c3 = c2 + 64; c4 = c3 + 64; - rgb1 = denise_colors.color_regs_aga[c1]; - rgb2 = denise_colors.color_regs_aga[c2]; - rgb3 = denise_colors.color_regs_aga[c3]; - rgb4 = denise_colors.color_regs_aga[c4]; + rgb1 = agnus_colors.color_regs_aga[c1]; + rgb2 = agnus_colors.color_regs_aga[c2]; + rgb3 = agnus_colors.color_regs_aga[c3]; + rgb4 = agnus_colors.color_regs_aga[c4]; console_out_f (_T("%3d %08X %3d %08X %3d %08X %3d %08X\n"), c1, rgb1, c2, rgb2, c3, rgb3, c4, rgb4); } @@ -4032,26 +4043,68 @@ void dump_aga_custom(void) static uae_u16 COLOR_READ(int num) { - int cr, cg, cb, colreg; - uae_u16 cval; - - if (!aga_mode || !(bplcon2 & 0x0100)) + if (!aga_mode || !(bplcon2 & 0x0100)) { return 0xffff; + } + uae_u16 cval; + int colreg = ((bplcon3 >> 13) & 7) * 32 + num; + int cr = (agnus_colors.color_regs_aga[colreg] >> 16) & 0xFF; + int cg = (agnus_colors.color_regs_aga[colreg] >> 8) & 0xFF; + int cb = agnus_colors.color_regs_aga[colreg] & 0xFF; - colreg = ((bplcon3 >> 13) & 7) * 32 + num; - cr = (denise_colors.color_regs_aga[colreg] >> 16) & 0xFF; - cg = (denise_colors.color_regs_aga[colreg] >> 8) & 0xFF; - cb = denise_colors.color_regs_aga[colreg] & 0xFF; if (bplcon3 & 0x200) { cval = ((cr & 15) << 8) | ((cg & 15) << 4) | ((cb & 15) << 0); } else { cval = ((cr >> 4) << 8) | ((cg >> 4) << 4) | ((cb >> 4) << 0); - if (denise_colors.color_regs_genlock[num]) { + if (agnus_colors.color_regs_genlock[num]) { cval |= 0x8000; } } return cval; } + +static void COLOR_WRITE(uae_u16 v, int num) +{ + if (aga_mode) { + if (!aga_mode || (bplcon2 & 0x0100)) { + return; + } + + int colreg = ((bplcon3 >> 13) & 7) * 32 + num; + int r = (v & 0xF00) >> 8; + int g = (v & 0xF0) >> 4; + int b = (v & 0xF) >> 0; + int cr = (agnus_colors.color_regs_aga[colreg] >> 16) & 0xFF; + int cg = (agnus_colors.color_regs_aga[colreg] >> 8) & 0xFF; + int cb = agnus_colors.color_regs_aga[colreg] & 0xFF; + + if (bplcon3 & 0x200) { + cr &= 0xF0; cr |= r; + cg &= 0xF0; cg |= g; + cb &= 0xF0; cb |= b; + } else { + cr = r + (r << 4); + cg = g + (g << 4); + cb = b + (b << 4); + agnus_colors.color_regs_genlock[colreg] = v >> 15; + } + uae_u32 cval = (cr << 16) | (cg << 8) | cb; + + agnus_colors.color_regs_aga[colreg] = cval; + + } else { + + if (!ecs_denise) { + v &= 0xfff; + } + agnus_colors.color_regs_ecs[num] = v & 0xfff; + agnus_colors.color_regs_genlock[num] = v >> 15; + agnus_colors.acolors[num] = getxcolor(v); + agnus_colors.color_regs_aga[num] = agnus_colors.acolors[num]; + + } +} + #endif bool get_custom_color_reg(int colreg, uae_u8 *r, uae_u8 *g, uae_u8 *b) @@ -4065,15 +4118,15 @@ bool get_custom_color_reg(int colreg, uae_u8 *r, uae_u8 *g, uae_u8 *b) return false; } if (aga_mode) { - *r = (denise_colors.color_regs_aga[colreg] >> 16) & 0xFF; - *g = (denise_colors.color_regs_aga[colreg] >> 8) & 0xFF; - *b = denise_colors.color_regs_aga[colreg] & 0xFF; + *r = (agnus_colors.color_regs_aga[colreg] >> 16) & 0xFF; + *g = (agnus_colors.color_regs_aga[colreg] >> 8) & 0xFF; + *b = agnus_colors.color_regs_aga[colreg] & 0xFF; } else { - *r = (denise_colors.color_regs_ecs[colreg] >> 8) & 15; + *r = (agnus_colors.color_regs_ecs[colreg] >> 8) & 15; *r |= (*r) << 4; - *g = (denise_colors.color_regs_ecs[colreg] >> 4) & 15; + *g = (agnus_colors.color_regs_ecs[colreg] >> 4) & 15; *g |= (*g) << 4; - *b = (denise_colors.color_regs_ecs[colreg] >> 0) & 15; + *b = (agnus_colors.color_regs_ecs[colreg] >> 0) & 15; *b |= (*b) << 4; } return true; @@ -4090,28 +4143,28 @@ bool blitter_cant_access(void) static int get_reg_chip(int reg) { if (reg == 0x100 || reg == 0x1fc) { - return 3; + return 1 | 2; } else if (reg >= 0x102 && reg < 0x108) { return 1 | 2; } else if (reg == 0x10c) { return 1 | 2; } else if (reg == 0x8e || reg == 0x90 || reg == 0x1e4) { - return 3; + return 1 | 2; } else if (reg >= 0x180 && reg < 0x180 + 32 * 2) { - return 2; + return 1 | 2; } else if (reg >= 0x140 && reg < 0x140 + 8 * 8) { if (reg & 4) { return 2 + 4; } - return 3; + return 1 | 2; } else if (reg >= 0x110 && reg < 0x110 + 8 * 2) { return 2; } else if (reg == 0x02c) { - return 3; + return 1 | 2; } else if (reg == 0x1c4 || reg == 0x1c6) { - return 3; + return 1 | 2; } else if (reg == 0x098 || reg == 0x10e) { - return 3; + return 1 | 2; } else if (reg >= 0x38 && reg < 0x40) { return 2; } @@ -4223,9 +4276,7 @@ static void compute_spcflag_copper(void) } } } - if (issyncstopped_count <= 160) { - copper_enabled_thisline = 1; - } + copper_enabled_thisline = 1; } void blitter_done_notify(void) @@ -4266,13 +4317,13 @@ static void cursorsprite(struct sprite *s) } if (aga_mode) { int sbasecol = ((bplcon4 >> 4) & 15) << 4; - sprite_0_colors[1] = denise_colors.color_regs_aga[sbasecol + 1] & 0xffffff; - sprite_0_colors[2] = denise_colors.color_regs_aga[sbasecol + 2] & 0xffffff; - sprite_0_colors[3] = denise_colors.color_regs_aga[sbasecol + 3] & 0xffffff; + sprite_0_colors[1] = agnus_colors.color_regs_aga[sbasecol + 1] & 0xffffff; + sprite_0_colors[2] = agnus_colors.color_regs_aga[sbasecol + 2] & 0xffffff; + sprite_0_colors[3] = agnus_colors.color_regs_aga[sbasecol + 3] & 0xffffff; } else { - sprite_0_colors[1] = xcolors[denise_colors.color_regs_ecs[17] & 0xfff]; - sprite_0_colors[2] = xcolors[denise_colors.color_regs_ecs[18] & 0xfff]; - sprite_0_colors[3] = xcolors[denise_colors.color_regs_ecs[19] & 0xfff]; + sprite_0_colors[1] = xcolors[agnus_colors.color_regs_ecs[17] & 0xfff]; + sprite_0_colors[2] = xcolors[agnus_colors.color_regs_ecs[18] & 0xfff]; + sprite_0_colors[3] = xcolors[agnus_colors.color_regs_ecs[19] & 0xfff]; } sprite_0_width = sprite_width; if (currprefs.input_tablet && (currprefs.input_mouse_untrap & MOUSEUNTRAP_MAGIC)) { @@ -6068,8 +6119,7 @@ void vsync_event_done(void) } } -// this prepares for new line -static void hsync_handler_post(bool onvsync) +static void cia_hsync_do(void) { // genlock active: // vertical: interlaced = toggles every other field, non-interlaced = both fields (normal) @@ -6105,14 +6155,14 @@ static void hsync_handler_post(bool onvsync) } else if (currprefs.cs_ciaatod > 0) { #if 0 static uae_s32 oldtick; - uae_s32 tick = read_system_time (); // milliseconds + uae_s32 tick = read_system_time(); // milliseconds int ms = 1000 / (currprefs.cs_ciaatod == 2 ? 60 : 50); if (tick - oldtick > 2000 || tick - oldtick < -2000) { oldtick = tick - ms; - write_log (_T("RESET\n")); - } + write_log(_T("RESET\n")); + } if (tick - oldtick >= ms) { - CIA_vsync_posthandler (1); + CIA_vsync_posthandler(1); oldtick += ms; } #else @@ -6138,6 +6188,13 @@ static void hsync_handler_post(bool onvsync) } } } +} + +// this prepares for new line +static void hsync_handler_post(bool onvsync) +{ + cia_hsync_do(); + #if 0 if (!custom_disabled) { @@ -6149,13 +6206,6 @@ static void hsync_handler_post(bool onvsync) } #endif - if (issyncstopped(bplcon0)) { - issyncstopped_count++; - } else { - issyncstopped_count = 0; - } - - #if 0 // AF testing stuff static int cnt = 0; @@ -6292,8 +6342,6 @@ static void hsync_handler_post(bool onvsync) inputdevice_hsync(false); } - //reset_decisions_scanline_start(); - rethink_uae_int(); /* See if there's a chance of a copper wait ending this line. */ @@ -6462,6 +6510,7 @@ void custom_reset(bool hardreset, bool keyboardreset) pipelined_write_addr = 0x1fe; prev_strobe = 0x3c; dmal_next = false; + syncs_stopped = false; bool ntsc = currprefs.ntscmode; @@ -6575,7 +6624,7 @@ void custom_reset(bool hardreset, bool keyboardreset) c |= uaerand(); } c &= 0xfff; - denise_colors.color_regs_ecs[i] = c; + agnus_colors.color_regs_ecs[i] = denise_colors.color_regs_ecs[i] = c; } for (int i = 0; i < 256; i++) { uae_u32 c = 0; @@ -6585,15 +6634,16 @@ void custom_reset(bool hardreset, bool keyboardreset) } c &= 0xffffff; denise_colors.color_regs_aga[i] = c; + agnus_colors.color_regs_aga[i] = c; } if (!aga_mode) { for (int i = 0; i < 32; i++) { - denise_colors.acolors[i] = getxcolor(denise_colors.color_regs_ecs[i]); + agnus_colors.acolors[i] = denise_colors.acolors[i] = getxcolor(denise_colors.color_regs_ecs[i]); } #ifdef AGA } else { for (int i = 0; i < 256; i++) { - denise_colors.acolors[i] = getxcolor(denise_colors.color_regs_aga[i]); + agnus_colors.acolors[i] = denise_colors.acolors[i] = getxcolor(denise_colors.color_regs_aga[i]); } #endif } @@ -6720,7 +6770,7 @@ void custom_reset(bool hardreset, bool keyboardreset) vv = denise_colors.color_regs_ecs[i]; denise_colors.color_regs_ecs[i] = -1; denise_colors.color_regs_ecs[i] = vv; - denise_colors.acolors[i] = xcolors[vv]; + agnus_colors.acolors[i] = denise_colors.acolors[i] = xcolors[vv]; } #ifdef AGA } else { @@ -6731,7 +6781,7 @@ void custom_reset(bool hardreset, bool keyboardreset) if (i < 32) { saved_color_regs_aga[i] = vv; } - denise_colors.acolors[i] = CONVERT_RGB(vv); + agnus_colors.acolors[i] = denise_colors.acolors[i] = CONVERT_RGB(vv); } #endif } @@ -7226,6 +7276,7 @@ static int custom_wput_agnus(int addr, uae_u32 value, int noget) case 0x11A: BPLxDAT(5, value); break; case 0x11C: BPLxDAT(6, value); break; case 0x11E: BPLxDAT(7, value); break; +#endif case 0x180: case 0x182: case 0x184: case 0x186: case 0x188: case 0x18A: case 0x18C: case 0x18E: case 0x190: case 0x192: case 0x194: case 0x196: @@ -7235,7 +7286,6 @@ static int custom_wput_agnus(int addr, uae_u32 value, int noget) case 0x1BC: case 0x1BE: COLOR_WRITE(value & 0x8FFF, (addr & 0x3E) / 2); break; -#endif case 0x120: case 0x124: case 0x128: case 0x12C: case 0x130: case 0x134: case 0x138: case 0x13C: @@ -7596,8 +7646,9 @@ uae_u8 *restore_custom(uae_u8 *src) intena = RW; /* 09A INTENA */ intreq = RW; /* 09C INTREQ */ adkcon = RW; /* 09E ADKCON */ - for (i = 0; i < 8; i++) - bplptx[i] = bplpt[i] = RL; + for (i = 0; i < 8; i++) { + bplpt[i] = RL; + } bplcon0 = RW; /* 100 BPLCON0 */ bplcon1 = RW; /* 102 BPLCON1 */ bplcon2 = RW; /* 104 BPLCON2 */ @@ -7612,9 +7663,9 @@ uae_u8 *restore_custom(uae_u8 *src) } for (i = 0; i < 32; i++) { uae_u16 v = RW; - denise_colors.color_regs_genlock[i] = (v & 0x8000) != 0; - denise_colors.color_regs_ecs[i] = v & 0xfff; /* 180 COLORxx */ - denise_colors.color_regs_aga[i] = getxcolor(v); + agnus_colors.color_regs_genlock[i] = denise_colors.color_regs_genlock[i] = (v & 0x8000) != 0; + agnus_colors.color_regs_ecs[i] = denise_colors.color_regs_ecs[i] = v & 0xfff; /* 180 COLORxx */ + agnus_colors.color_regs_ecs[i] = denise_colors.color_regs_ecs[i] = getxcolor(v); saved_color_regs_aga[i] = getxcolor(v); } htotal = RW; /* 1C0 HTOTAL */ @@ -7687,6 +7738,7 @@ uae_u8 *restore_custom(uae_u8 *src) denise_update_reg(0x1c4, hbstrt); denise_update_reg(0x1c6, hbstop); docols(&denise_colors); + docols(&agnus_colors); intreq2 = intreq; intena2 = intena; @@ -7843,7 +7895,7 @@ uae_u8 *save_custom(size_t *len, uae_u8 *dstptr, int full) } for (i = 0; i < 32; i++) { if (aga_mode) { - uae_u32 v = denise_colors.color_regs_aga[i]; + uae_u32 v = agnus_colors.color_regs_aga[i]; uae_u16 v2; v &= 0x00f0f0f0; v2 = (v >> 4) & 15; @@ -7851,8 +7903,8 @@ uae_u8 *save_custom(size_t *len, uae_u8 *dstptr, int full) v2 |= ((v >> 20) & 15) << 8; SW(v2); } else { - uae_u16 v = denise_colors.color_regs_ecs[i]; - if (denise_colors.color_regs_genlock[i]) + uae_u16 v = agnus_colors.color_regs_ecs[i]; + if (agnus_colors.color_regs_genlock[i]) v |= 0x8000; SW(v); /* 180-1BE COLORxx */ } @@ -7910,8 +7962,10 @@ uae_u8 *restore_custom_agacolors(uae_u8 *src) if (v & 0x80000000) { denise_colors.color_regs_genlock[i] = 1; } + agnus_colors.color_regs_genlock[i] = 0; v &= 0xffffff; denise_colors.color_regs_aga[i] = v; + agnus_colors.color_regs_aga[i] = v; if (i < 32) { saved_color_regs_aga[i] = v; } @@ -7920,6 +7974,7 @@ uae_u8 *restore_custom_agacolors(uae_u8 *src) #endif } docols(&denise_colors); + docols(&agnus_colors); return src; } @@ -7930,7 +7985,7 @@ uae_u8 *save_custom_agacolors(size_t *len, uae_u8 *dstptr) if (!aga_mode) { int i; for (i = 0; i < 256; i++) { - if (denise_colors.color_regs_aga[i] || denise_colors.color_regs_genlock[i]) + if (agnus_colors.color_regs_aga[i] || agnus_colors.color_regs_genlock[i]) break; } if (i == 256) @@ -7943,7 +7998,7 @@ uae_u8 *save_custom_agacolors(size_t *len, uae_u8 *dstptr) dstbak = dst = xmalloc (uae_u8, 256 * 4); for (int i = 0; i < 256; i++) #ifdef AGA - SL ((denise_colors.color_regs_aga[i] & 0xffffff) | (denise_colors.color_regs_genlock[i] ? 0x80000000 : 0)); + SL ((agnus_colors.color_regs_aga[i] & 0xffffff) | (agnus_colors.color_regs_genlock[i] ? 0x80000000 : 0)); #else SL (0); #endif @@ -8741,6 +8796,8 @@ static void process_copper(struct rgabuf *r) case COP_strobe_vbl_delay: { cop_state.state = COP_strobe_vbl_delay2; + cop_state.strobeip = getstrobecopip(); + cop_state.strobe = 0; #ifdef DEBUGGER if (debug_dma) { record_dma_event(DMA_EVENT_COPPERUSE); @@ -8769,6 +8826,11 @@ static void process_copper(struct rgabuf *r) regs.chipset_latch_rw = cop_state.ir[1]; } break; + case COP_strobe_vbl_delay_nodma: + cop_state.ip = getstrobecopip(); + cop_state.state = COP_read1; + break; + case COP_strobe_vbl_extra_delay1: #ifdef DEBUGGER if (debug_dma) { @@ -9119,6 +9181,9 @@ static void generate_copper(void) switch (cop_state.state) { + case COP_strobe_vbl_delay_nodma: + generate_copper_cycle_if_free(CYCLE_PIPE_COPPER); + break; case COP_strobe_vbl_delay2: // Second cycle after COPJMP does basically skipped MOVE (MOVE to 1FE) // Cycle is used and needs to be free. @@ -9570,6 +9635,11 @@ static void decide_bpl(int hpos) // DDFSTRT if (hpos == ddfstrt) { ddf_enable_on = 1; + if (currprefs.gfx_scandoubler && vpos < MAX_SCANDOUBLED_LINES) { + for (int i = 0; i < MAX_PLANES; i++) { + scandoubled_bpl_ptr[vpos][i][lof_store] = bplpt[i]; + } + } } // Hard stop limit @@ -9723,6 +9793,11 @@ static void decide_bpl(int hpos) // DDFSTRT if (hpos == ddfstrt) { ddfstrt_match = true; + if (currprefs.gfx_scandoubler && vpos < MAX_SCANDOUBLED_LINES) { + for (int i = 0; i < MAX_PLANES; i++) { + scandoubled_bpl_ptr[vpos][i][lof_store] = bplpt[i]; + } + } } else { ddfstrt_match = false; } @@ -10153,19 +10228,26 @@ static void check_vsyncs(void) static void do_scandouble(void) { + int l = lof_store; + int vp = vpos; struct rgabuf rga = { 0 }; for (int i = 0; i < rga_denise_cycle_count; i++) { int idx = (i + rga_denise_cycle_start) & (DENISE_RGA_SLOT_TOTAL - 1); struct denise_rga *rd = &rga_denise[idx]; if (rd->rga >= 0x110 && rd->rga < 0x120) { - rga.pv = rd->pt + 8; - if (fetchmode_fmode_bpl == 3) { - rd->v64 = fetch64(&rga); - } else if (fetchmode_fmode_bpl > 0) { - rd->v = fetch32_bpl(&rga); - } else { - rd->v = fetch16(&rga); - } + int plane = (rd->rga - 0x110) / 2; + if (vp < MAX_SCANDOUBLED_LINES) { + uaecptr l1 = scandoubled_bpl_ptr[vp][plane][l]; + uaecptr l2 = scandoubled_bpl_ptr[vp][plane][l ^ 1]; + rga.pv = rd->pt - l1 + l2; + if (fetchmode_fmode_bpl == 3) { + rd->v64 = fetch64(&rga); + } else if (fetchmode_fmode_bpl > 0) { + rd->v = fetch32_bpl(&rga); + } else { + rd->v = fetch16(&rga); + } + } } } } @@ -10205,7 +10287,7 @@ static void draw_line(int hpos) hdisplay_left_border = (get_cck_cycles() - agnus_trigger_cck) - REFRESH_FIRST_HPOS; int dvp = calculate_linetype(linear_display_vpos); - int wclks = hpos - display_hstart_cyclewait - display_hstart_cyclewait_end; + int wclks = hpos - (display_hstart_cyclewait_skip - display_hstart_cyclewait_skip2); if (wclks > hpos) { wclks = hpos; } @@ -10217,7 +10299,9 @@ static void draw_line(int hpos) int cs = 0;// (beamcon0 & BEAMCON0_VARHSYEN) ? agnus_phsync_end - agnus_phsync_start : agnus_hsync_end - agnus_hsync_start; int cslen = 10; - draw_denise_line(dvp, nextline_how, rga_denise_cycle_line, rga_denise_cycle_start, rga_denise_cycle_count, wclks, cs, cslen); + draw_denise_line(dvp, nextline_how, rga_denise_cycle_line, rga_denise_cycle_start, rga_denise_cycle_count, + display_hstart_cyclewait_skip, display_hstart_cyclewait_skip2, + wclks, cs, cslen); wclks_prev = wclks; } @@ -10396,8 +10480,13 @@ static void decide_hsync(void) if (custom_fastmode >= 0) { if (doflickerfix_active()) { + denise_store_registers(); draw_line(linear_hpos); - //do_scandouble(); + do_scandouble(); + denise_restore_registers(); + lof_display ^= 1; + draw_line(linear_hpos); + lof_display ^= 1; } else { draw_line(linear_hpos); } @@ -10578,6 +10667,24 @@ void custom_trigger_start_fast(void) static int fast_next_cck; +// syncs stopped: generate fake hsyncs to keep everything running +static void fakehsync_handler(uae_u32 v) +{ + if (syncs_stopped) { + hsync_handler(false); + next_denise_rga(); + event2_newevent_xx(-1, CYCLE_UNIT * maxhpos, 0, fakehsync_handler); + } +} + +static void set_fakehsync_handler(void) +{ + if (event2_newevent_x_exists(fakehsync_handler)) { + return; + } + event2_newevent_xx(-1, CYCLE_UNIT * maxhpos, 0, fakehsync_handler); +} + static void sync_evhandler(void) { eventtab[ev_sync].active = false; @@ -10677,6 +10784,22 @@ static void inc_cck(void) // must check end of line first if (agnus_hpos == maxhpos) { agnus_hpos = 0; + if (issyncstopped(bplcon0) && !syncs_stopped) { + if (!lol) { + setsyncstopped(); + } + } + } + if (syncs_stopped) { + agnus_hpos = 0; + hhpos = 0; + linear_hpos = 0; + dmal_shifter = 0; // fast CPU fix + set_fakehsync_handler(); + } else { + rga_denise_cycle++; + rga_denise_cycle &= (DENISE_RGA_SLOT_TOTAL - 1); + rga_denise_cycle_count++; } if (beamcon0_dual) { if (hhpos == maxhpos) { @@ -10708,9 +10831,6 @@ static void inc_cck(void) } } - rga_denise_cycle++; - rga_denise_cycle &= (DENISE_RGA_SLOT_TOTAL - 1); - rga_denise_cycle_count++; } static void update_agnus_pcsync(int hp, bool prevsy) @@ -10932,13 +11052,15 @@ static void check_hsyncs(void) #endif } if ((vpos == 9 && is_rsve_n) || (vpos == 8 && is_vr1) || (vpos == 7 && is_rsve_p) || agnus_equdis) { - agnus_ve = false; - check_vidsyncs(); + if (agnus_ve) { + agnus_ve = false; + check_vidsyncs(); #ifdef DEBUGGER - if (debug_dma) { - record_dma_event_agnus(AGNUS_EVENT_VE, false); - } + if (debug_dma) { + record_dma_event_agnus(AGNUS_EVENT_VE, false); + } #endif + } } } @@ -11365,7 +11487,7 @@ static void do_cck(bool docycles) check_hsyncs(); - if (agnus_hpos == HARDWIRED_DMA_TRIGGER_HPOS) { + if (agnus_hpos == HARDWIRED_DMA_TRIGGER_HPOS && !syncs_stopped) { custom_trigger_start(); if (custom_fastmode > 0) { return; diff --git a/devices.cpp b/devices.cpp index a157a51d..981a5bbe 100644 --- a/devices.cpp +++ b/devices.cpp @@ -273,7 +273,6 @@ void devices_hsync(void) { DISK_hsync(); audio_hsync(); - CIA_hsync_prehandler(); decide_blitter(-1); #ifdef SERIAL_PORT diff --git a/drawing.cpp b/drawing.cpp index c1e54fde..ca636e28 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -306,6 +306,8 @@ static int denise_spr_nearestcnt; static int denise_y_start, denise_y_end; static int denise_pixtotal, denise_linecnt, denise_startpos, denise_cck, denise_total; +static int denise_pixtotalskip, denise_pixtotalskip2; +static int denise_pixtotal_max; static uae_u32 *buf1, *buf2, *buf_d; static uae_u16 *gbuf; static uae_u8 pixx0, pixx1, pixx2, pixx3; @@ -1030,7 +1032,7 @@ static void center_image (void) int w = vidinfo->drawbuffer.inwidth; int ew = vidinfo->drawbuffer.extrawidth; - int maxdiw = max_diwlastword; + int maxdiw = denisehtotal; if (currprefs.gfx_overscanmode <= OVERSCANMODE_OVERSCAN && currprefs.gfx_xcenter && !fd->gfx_filter_autoscale && max_diwstop > 0) { @@ -1070,8 +1072,8 @@ static void center_image (void) } } - if (visible_left_border > max_diwlastword - 32) - visible_left_border = max_diwlastword - 32; + if (visible_left_border > denisehtotal - 32) + visible_left_border = denisehtotal - 32; //if (visible_left_border < 0) visible_left_border = 0; visible_left_border &= ~((xshift (1, lores_shift)) - 1); @@ -3141,7 +3143,6 @@ void denise_reset(bool hard) sethresolution(); } - // COLORxx write static void update_color(int idx, uae_u16 v, uae_u16 con2, uae_u16 con3) { @@ -3538,12 +3539,8 @@ static void expand_drga(struct denise_rga *rd) break; case 0x110: - if (aga_mode) { - if (denise_bplfmode64) { - bplxdat_64[0] = rd->v64; - } else { - bplxdat[0] = rd->v; - } + if (denise_bplfmode64) { + bplxdat_64[0] = rd->v64; } else { bplxdat[0] = rd->v; } @@ -3592,7 +3589,8 @@ static void expand_drga(struct denise_rga *rd) break; case 0x1e4: if (rd->v != denise_diwhigh2 || rd->v != denise_diwhigh || !diwhigh_written) { - if (!aga_mode) { + // ecs denise superhires check is a hack until lts_unaligned_ecs_shres() is implemented + if (!aga_mode && hresolution < RES_SUPERHIRES) { reswitch_unalign++; denise_diwhigh2 = rd->v; } else { @@ -4386,10 +4384,6 @@ static bool checkhorizontal1_ecs(int cnt, int cnt_next, int h) } if (exthblankon_ecsonly) { do_exthblankon_ecs(); - if (!denise_csync_blanken2 && denise_csync_blanken && !denise_vblank_active) { - // When ECS Denise CSYNC programmed blank activates: clear bpl1dat border state and sprite visible state - hstart_new(); - } } if (bpl1dat_unalign && h) { bpl1dat_enable_bpls(); @@ -4580,6 +4574,27 @@ static void matchsprites_aga(int cnt) } } +static uae_u16 s_bplcon0, s_bplcon1, s_bplcon2, s_bplcon3, s_bplcon4, s_fmode; +void denise_store_registers(void) +{ + s_bplcon0 = bplcon0_denise; + s_bplcon1 = bplcon1_denise; + s_bplcon2 = bplcon2_denise; + s_bplcon3 = bplcon3_denise; + s_bplcon4 = bplcon4_denise; + s_fmode = fmode_denise; +} +void denise_restore_registers(void) +{ + expand_bplcon0(s_bplcon0); + expand_bplcon1(s_bplcon1); + expand_bplcon2(s_bplcon2); + expand_bplcon3(s_bplcon3); + expand_bplcon4_spr(s_bplcon4); + expand_bplcon4_bm(s_bplcon4); + expand_fmode(s_fmode); +} + bool start_draw_denise(void) { struct vidbuf_description *vidinfo = &adisplays[0].gfxvidinfo; @@ -4856,27 +4871,21 @@ static void get_line(int gfx_ypos, enum nln_how how) } } } + + denise_pixtotal_max = denise_pixtotal - denise_pixtotalskip2; + denise_pixtotal = -denise_pixtotalskip; + if ((denise_pixtotal_max << (1 + hresolution)) > vb->inwidth) { + denise_pixtotal_max = vb->inwidth >> (1 + hresolution); + } if (!buf1) { - denise_pixtotal = -1; - } else { - if ((denise_pixtotal << (1 + hresolution)) > vb->inwidth) { - denise_pixtotal = vb->inwidth >> (1 + hresolution); - } + denise_pixtotal_max = -0x7fffffff; } } -void draw_denise_line(int gfx_ypos, enum nln_how how, uae_u32 linecnt, int startpos, int total, int dtotal, int calib_start, int calib_len) +static void denise_draw_update(void) { - bool fullline = false; // currprefs.chipset_hr; - - denise_hcounter_prev = -1; - denise_pixtotal = dtotal; - denise_linecnt = linecnt; - denise_startpos = startpos; - denise_total = total; - denise_cck = 0; if (denise_max_planes != denise_planes) { int mp = denise_max_planes; denise_max_planes = denise_planes; @@ -4888,6 +4897,22 @@ void draw_denise_line(int gfx_ypos, enum nln_how how, uae_u32 linecnt, int start } } denise_max_odd_even = denise_odd_even; +} + +void draw_denise_line(int gfx_ypos, enum nln_how how, uae_u32 linecnt, int startpos, int total, int skip, int skip2, int dtotal, int calib_start, int calib_len) +{ + bool fullline = false; // currprefs.chipset_hr; + + denise_hcounter_prev = -1; + denise_pixtotal = dtotal; + denise_pixtotalskip = skip; + denise_pixtotalskip2 = skip2; + denise_linecnt = linecnt; + denise_startpos = startpos; + denise_total = total; + denise_cck = 0; + + denise_draw_update(); if (fullline) { denise_pixtotal = denise_total; @@ -4899,7 +4924,7 @@ void draw_denise_line(int gfx_ypos, enum nln_how how, uae_u32 linecnt, int start hbstrt_ptr1 = NULL; - if ((dtotal < 0 || linear_vpos >= denise_vblank_extra_vbstop || linear_vpos < denise_vblank_extra_vbstrt) && currprefs.gfx_overscanmode < OVERSCANMODE_ULTRA) { + if (denise_pixtotal_max == -0x7fffffff || ((linear_vpos >= denise_vblank_extra_vbstop || linear_vpos < denise_vblank_extra_vbstrt) && currprefs.gfx_overscanmode < OVERSCANMODE_ULTRA)) { // don't draw vertical blanking if not ultra extreme overscan while (denise_cck < denise_total) { @@ -4941,6 +4966,10 @@ void draw_denise_line(int gfx_ypos, enum nln_how how, uae_u32 linecnt, int start denise_cck++; } + if (buf1 && gbuf && denise_pixtotal_max > 0) { + memset(gbuf, 0xff, ((2 * denise_pixtotal_max) << hresolution) * sizeof(uae_u16)); + } + } else { // visible line @@ -4951,6 +4980,7 @@ void draw_denise_line(int gfx_ypos, enum nln_how how, uae_u32 linecnt, int start uae_u32 *buf1t = buf1; uae_u32 *buf2t = buf2; uae_u32 *bufdt = buf_d; + uae_u16 *bufg = gbuf; while (denise_cck < denise_total) { lts(); @@ -4958,28 +4988,54 @@ void draw_denise_line(int gfx_ypos, enum nln_how how, uae_u32 linecnt, int start } // blank last pixel row if normal overscan mode, it might have NTSC artifacts - if (hbstrt_ptr1 && currprefs.gfx_overscanmode <= OVERSCANMODE_OVERSCAN) { + if (denise_pixtotal_max != -0x7fffffff && hbstrt_ptr1 && currprefs.gfx_overscanmode <= OVERSCANMODE_OVERSCAN) { int add = 1 << hresolution; - hbstrt_ptr1 -= denise_lol_shift_prev; - hbstrt_ptr2 -= denise_lol_shift_prev; - for (int i = 0; i < add; i++) { - *hbstrt_ptr1++ = 0x000000; - *hbstrt_ptr2++ = 0x000000; + uae_u32 *p1 = hbstrt_ptr1 - denise_lol_shift_prev; + uae_u32 *p2 = hbstrt_ptr2 - denise_lol_shift_prev; + for (int i = 0; i < add * 2; i++) { + *p1++ = 0x000000; + *p2++ = 0x000000; } } + if (currprefs.gfx_overscanmode < OVERSCANMODE_OVERSCAN) { int w = (OVERSCANMODE_OVERSCAN - currprefs.gfx_overscanmode) * 8; if (currprefs.gfx_overscanmode == 0) { w -= 4; } w <<= hresolution; - if (hbstrt_ptr1) { - memset(hbstrt_ptr1 - w, 0, w * sizeof(uae_u32)); - memset(hbstrt_ptr2 - w, 0, w * sizeof(uae_u32)); - } - if (hbstrt_ptr2) { - memset(hbstop_ptr1, 0, w * sizeof(uae_u32)); - memset(hbstop_ptr2, 0, w * sizeof(uae_u32)); + for (int i = 0; i < 4; i++) { + uae_u32 *ptr, *ptr2; + switch (i) + { + case 0: + ptr = hbstrt_ptr1; + ptr2 = buf1t; + break; + case 1: + ptr = hbstrt_ptr2; + ptr2 = buf2t; + break; + case 2: + ptr = hbstop_ptr1; + ptr2 = buf1t; + break; + case 3: + ptr = hbstop_ptr2; + ptr2 = buf2t; + break; + + } + if (ptr) { + uae_u32 *p1 = ptr - denise_lol_shift_prev; + memset(p1, 0, w * sizeof(uae_u32)); + memset(p1 - w, 0, w * sizeof(uae_u32)); + if (bufg) { + uae_u16 *gp1 = (p1 - ptr2) + bufg; + memset(gp1, 0xff, w * sizeof(uae_u16)); + memset(gp1 - w, 0xff, w * sizeof(uae_u16)); + } + } } } @@ -5334,7 +5390,7 @@ static void lts_unaligned_aga(int cnt, int cnt_next, int h) dtgbuf[h][ipix] = gpix; // bitplane and sprite merge & output - if (!dpixcnt && buf1 && denise_pixtotal >= 0) { + if (!dpixcnt && buf1 && denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t = dtbuf[h ^ lol][ipix]; #ifdef DEBUGGER @@ -5402,6 +5458,10 @@ static void lts_unaligned_ecs(int cnt, int cnt_next, int h) } if (exthblankon_ecsonly) { do_exthblankon_ecs(); + if (!denise_csync_blanken2 && denise_csync_blanken && !denise_vblank_active) { + // When ECS Denise CSYNC programmed blank activates: clear bpl1dat border state and sprite visible state + hstart_new(); + } } cnt <<= 2; @@ -5421,13 +5481,14 @@ static void lts_unaligned_ecs(int cnt, int cnt_next, int h) bpl1dat_enable_bpls_aga(); bpl1dat_unalign = false; } - // DIWHIGH has extra 0.5 CCK delay - if (denise_diwhigh2 >= 0) { - denise_diwhigh = denise_diwhigh2; - denise_diwhigh2 = -1; - diwhigh_written = true; - calchdiw(); - } + } + + // DIWHIGH has extra 0.5 CCK delay + if (denise_diwhigh2 >= 0) { + denise_diwhigh = denise_diwhigh2; + denise_diwhigh2 = -1; + diwhigh_written = true; + calchdiw(); } } @@ -5509,7 +5570,7 @@ static void lts_unaligned_ecs(int cnt, int cnt_next, int h) dtgbuf[h][ipix] = gpix; // bitplane and sprite merge & output - if (!dpixcnt && buf1 && denise_pixtotal >= 0) { + if (!dpixcnt && buf1 && denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t = dtbuf[h ^ lol][ipix]; diff --git a/events.cpp b/events.cpp index a6fc1541..54e98096 100644 --- a/events.cpp +++ b/events.cpp @@ -327,7 +327,7 @@ void do_cycles_slow(int cycles_to_add) while (cycles_to_add >= CYCLE_UNIT) { if (custom_fastmode <= 0) { - int cyc = cycles_to_add & ~(CYCLE_UNIT - 1); + int cyc = cycles_to_add; cyc = do_cycles_cck(cyc); cycles_to_add -= cyc; } else { @@ -488,6 +488,16 @@ void event2_newevent_x_remove(evfunc2 func) } } +bool event2_newevent_x_exists(evfunc2 func) +{ + for (int i = 0; i < ev2_max; i++) { + if (eventtab2[i].active && eventtab2[i].handler == func) { + return true; + } + } + return false; +} + void event2_newevent_x_replace(evt_t t, uae_u32 data, evfunc2 func) { event2_newevent_x_remove(func); diff --git a/gencpu.cpp b/gencpu.cpp index ecbf2c64..75708268 100644 --- a/gencpu.cpp +++ b/gencpu.cpp @@ -9107,7 +9107,7 @@ static void gen_opcode (unsigned int opcode) if (curi->dmode == Dreg) { out("uae_u32 tmp = m68k_dreg(regs, dstreg);\n"); out("offset &= 0x1f;\n"); - out("tmp = (tmp << offset) | (tmp >> (32 - offset));\n"); + out("if (offset) tmp = (tmp << offset) | (tmp >> (32 - offset));\n"); out("bdata[0] = tmp & ((1 << (32 - width)) - 1);\n"); } else { out("uae_u32 tmp;\n"); @@ -9156,7 +9156,7 @@ static void gen_opcode (unsigned int opcode) || curi->mnemo == i_BFINS) { if (curi->dmode == Dreg) { out("tmp = bdata[0] | (tmp << (32 - width));\n"); - out("m68k_dreg(regs, dstreg) = (tmp >> offset) | (tmp << (32 - offset));\n"); + out("m68k_dreg(regs, dstreg) = offset ? ((tmp >> offset) | (tmp << (32 - offset))) : tmp;\n"); } else { out("%s(dsta, bdata, tmp, offset, width);\n", putb); } diff --git a/genlinetoscr.cpp b/genlinetoscr.cpp index a55a30f7..253a11a9 100644 --- a/genlinetoscr.cpp +++ b/genlinetoscr.cpp @@ -582,7 +582,7 @@ static void gen_pix_aga(void) } } - outf("if (denise_pixtotal >= 0) {"); + outf("if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) {"); // bitplane/sprite merging off = 0; @@ -645,8 +645,6 @@ static void gen_pix_aga(void) } outf("}"); - - outf("sprites_hidden = sprites_hidden2;"); } static void gen_pix(void) @@ -728,7 +726,7 @@ static void gen_pix(void) } } - outf("if (denise_pixtotal >= 0) {"); + outf("if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) {"); // bitplane/sprite merging for (int i = 0; i < (1 << outres); i++) { @@ -785,8 +783,6 @@ static void gen_pix(void) outf("}"); gen_copybpl(); - - outf("sprites_hidden = sprites_hidden2;"); } static void gen_init(void) @@ -874,6 +870,7 @@ static void gen_start(void) } static void gen_end(void) { + outf(" sprites_hidden = sprites_hidden2;"); outf("#ifdef DEBUGGER"); outf(" *debug_dma_dhpos_odd = denise_hcounter;"); outf("#endif"); @@ -882,7 +879,7 @@ static void gen_end(void) outf(" denise_hcounter_next++;"); outf(" denise_hcounter_next &= 511;"); outf(" }"); - outf(" denise_pixtotal--;"); + outf(" denise_pixtotal++;"); outf(" denise_hcounter = denise_hcounter_new;"); outf(" denise_cck++;"); outf(" }"); @@ -959,6 +956,21 @@ static void helperfunctions(void) } } +static void write_funcs(const char *name) +{ + outf("static LINETOSRC_FUNC %s[] = {", name); + char *p = funcnames; + while (*p) { + outf("%s,", p); + p += strlen(p) + 1; + } + outf("NULL"); + outf("};"); + + funcnamep = funcnames; + *funcnamep = 0; +} + int main (int argc, char *argv[]) { set_outfile("../../linetoscr_common.cpp"); @@ -1004,16 +1016,8 @@ int main (int argc, char *argv[]) } } - outf("static LINETOSRC_FUNC linetoscr_aga_funcs[] = {"); - char *p = funcnames; - while (*p) { - outf("%s,", p); - p += strlen(p) + 1; - } - outf("};"); + write_funcs("linetoscr_aga_funcs"); - funcnamep = funcnames; - *funcnamep = 0; genlock = 1; for (bplfmode = 0; bplfmode < 3; bplfmode++) { @@ -1046,20 +1050,11 @@ int main (int argc, char *argv[]) } } - outf("static LINETOSRC_FUNC linetoscr_aga_genlock_funcs[] = {"); - p = funcnames; - while (*p) { - outf("%s,", p); - p += strlen(p) + 1; - } - outf("};"); - + write_funcs("linetoscr_aga_genlock_funcs"); // OCS/ECS set_outfile("../../linetoscr_ocs_ecs.cpp"); - funcnamep = funcnames; - *funcnamep = 0; aga = 0; bplfmode = 0; genlock = 0; @@ -1090,19 +1085,11 @@ int main (int argc, char *argv[]) } } - outf("static LINETOSRC_FUNC linetoscr_ecs_funcs[] = {"); - p = funcnames; - while (*p) { - outf("%s,", p); - p += strlen(p) + 1; - } - outf("};"); + write_funcs("linetoscr_ecs_funcs"); // OCS/ECS genlock set_outfile("../../linetoscr_ocs_ecs_genlock.cpp"); - funcnamep = funcnames; - *funcnamep = 0; genlock = 1; for (outres = 0; outres < 3; outres++) { @@ -1131,22 +1118,11 @@ int main (int argc, char *argv[]) } } - outf("static LINETOSRC_FUNC linetoscr_ecs_genlock_funcs[] = {"); - p = funcnames; - while (*p) { - outf("%s,", p); - p += strlen(p) + 1; - } - outf("};"); - - - + write_funcs("linetoscr_ecs_genlock_funcs"); // OCS/ECS NTSC set_outfile("../../linetoscr_ocs_ecs_ntsc.cpp"); - funcnamep = funcnames; - *funcnamep = 0; aga = 0; bplfmode = 0; genlock = 0; @@ -1176,19 +1152,11 @@ int main (int argc, char *argv[]) } } - outf("static LINETOSRC_FUNC linetoscr_ecs_ntsc_funcs[] = {"); - p = funcnames; - while (*p) { - outf("%s,", p); - p += strlen(p) + 1; - } - outf("};"); + write_funcs("linetoscr_ecs_ntsc_funcs"); // OCS/ECS genlock NTSC set_outfile("../../linetoscr_ocs_ecs_ntsc_genlock.cpp"); - funcnamep = funcnames; - *funcnamep = 0; genlock = 1; for (outres = 0; outres < 3; outres++) { @@ -1217,19 +1185,11 @@ int main (int argc, char *argv[]) } } - outf("static LINETOSRC_FUNC linetoscr_ecs_ntsc_genlock_funcs[] = {"); - p = funcnames; - while (*p) { - outf("%s,", p); - p += strlen(p) + 1; - } - outf("};"); + write_funcs("linetoscr_ecs_ntsc_genlock_funcs"); // ECS SuperHires set_outfile("../../linetoscr_ecs_shres.cpp"); - funcnamep = funcnames; - *funcnamep = 0; planes = 2; res = 2; modes = 0; @@ -1286,7 +1246,7 @@ int main (int argc, char *argv[]) gen_sprpix(1); gen_matchspr(2); gen_ecsshresspr(); - outf("if (denise_pixtotal >= 0) {"); + outf("if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) {"); gen_storepix(0, 0); gen_storepix(2, 2); outf("}"); @@ -1296,7 +1256,7 @@ int main (int argc, char *argv[]) gen_sprpix(1); gen_matchspr(2); gen_ecsshresspr(); - outf("if (denise_pixtotal >= 0) {"); + outf("if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) {"); gen_storepix(0, 0); gen_storepix(1, 1); gen_storepix(2, 2); @@ -1314,13 +1274,7 @@ int main (int argc, char *argv[]) gen_tail(); } - outf("static LINETOSRC_FUNC linetoscr_ecs_shres_%sfuncs[] = {", genlock ? "genlock_" : ""); - p = funcnames; - while (*p) { - outf("%s,", p); - p += strlen(p) + 1; - } - outf("};"); + write_funcs(genlock ? "linetoscr_ecs_shres_genlock_funcs" : "linetoscr_ecs_shres_funcs"); } closefile(); diff --git a/include/cia.h b/include/cia.h index dd9c55f4..9dd2f61b 100644 --- a/include/cia.h +++ b/include/cia.h @@ -13,7 +13,6 @@ extern void CIA_reset(int); extern void CIA_vsync_prehandler(void); -extern void CIA_hsync_prehandler(void); extern void CIA_hsync_posthandler(bool, bool); extern void CIA_handler(void); extern void CIAA_tod_handler(int); diff --git a/include/drawing.h b/include/drawing.h index 5d237443..1835466f 100644 --- a/include/drawing.h +++ b/include/drawing.h @@ -38,8 +38,6 @@ extern bool exthblanken; #define CCK_SHRES_SHIFT 3 -#define max_diwlastword (denisehtotal << CCK_SHRES_SHIFT) - /* color values in two formats: 12 (OCS/ECS) or 24 (AGA) bit Amiga RGB (color_regs), * and the native color value; both for each Amiga hardware color register. * @@ -167,12 +165,14 @@ void clear_inhibit_frame(int monid, int bit); void toggle_inhibit_frame(int monid, int bit); extern struct color_entry denise_colors; -void draw_denise_line(int gfx_ypos, nln_how how, uae_u32 linecnt, int startpos, int total, int dtotal, int calib_start, int calib_len); +void draw_denise_line(int gfx_ypos, nln_how how, uae_u32 linecnt, int startpos, int total, int skip, int skip2, int dtotal, int calib_start, int calib_len); bool draw_denise_line_fast(uae_u8 *bplpt[8], int bplstart, int bpllen, int gfx_ypos, enum nln_how how, int dstart, int dtotal, bool vblank, struct denise_fastsprite *dfs); bool start_draw_denise(void); void end_draw_denise(void); void denise_update_reg(uae_u16 reg, uae_u16 v); void denise_reset(bool); bool denise_update_reg_queued(uae_u16 reg, uae_u16 v, uae_u32 cycle); +void denise_store_registers(void); +void denise_restore_registers(void); #endif /* UAE_DRAWING_H */ diff --git a/include/events.h b/include/events.h index 4c78c48d..ee3c0494 100644 --- a/include/events.h +++ b/include/events.h @@ -153,6 +153,7 @@ extern void event2_newevent_x_replace(evt_t t, uae_u32 data, evfunc2 func); extern void event2_newevent_x_replace_exists(evt_t t, uae_u32 data, evfunc2 func); extern void event2_newevent_x_remove(evfunc2 func); extern void event2_newevent_xx_ce(evt_t t, uae_u32 data, evfunc2 func); +bool event2_newevent_x_exists(evfunc2 func); STATIC_INLINE void event2_newevent_x(int no, evt_t t, uae_u32 data, evfunc2 func) { diff --git a/linetoscr_aga_fm0.cpp b/linetoscr_aga_fm0.cpp index c3450460..2589648e 100644 --- a/linetoscr_aga_fm0.cpp +++ b/linetoscr_aga_fm0.cpp @@ -33,7 +33,7 @@ static void lts_aga_fm0_n0_p2_ilores_dlores(void) } loaded_pix = getbpl2(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -53,7 +53,7 @@ static void lts_aga_fm0_n0_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -90,7 +90,7 @@ static void lts_aga_fm0_n1_p2_ilores_dlores(void) } loaded_pix = getbpl2(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -110,7 +110,7 @@ static void lts_aga_fm0_n1_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -149,7 +149,7 @@ static void lts_aga_fm0_dpf0_p2_ilores_dlores(void) } loaded_pix = getbpl2(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -169,7 +169,7 @@ static void lts_aga_fm0_dpf0_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -211,7 +211,7 @@ static void lts_aga_fm0_dpf1_p2_ilores_dlores(void) } loaded_pix = getbpl2(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -231,7 +231,7 @@ static void lts_aga_fm0_dpf1_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -289,7 +289,7 @@ static void lts_aga_fm0_n0_p4_ilores_dlores(void) } loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -309,7 +309,7 @@ static void lts_aga_fm0_n0_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -346,7 +346,7 @@ static void lts_aga_fm0_n1_p4_ilores_dlores(void) } loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -366,7 +366,7 @@ static void lts_aga_fm0_n1_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -405,7 +405,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dlores(void) } loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -425,7 +425,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -467,7 +467,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dlores(void) } loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -487,7 +487,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -545,7 +545,7 @@ static void lts_aga_fm0_n0_p6_ilores_dlores(void) } loaded_pix = getbpl6(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -565,7 +565,7 @@ static void lts_aga_fm0_n0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -602,7 +602,7 @@ static void lts_aga_fm0_n1_p6_ilores_dlores(void) } loaded_pix = getbpl6(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -622,7 +622,7 @@ static void lts_aga_fm0_n1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -661,7 +661,7 @@ static void lts_aga_fm0_dpf0_p6_ilores_dlores(void) } loaded_pix = getbpl6(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -681,7 +681,7 @@ static void lts_aga_fm0_dpf0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -723,7 +723,7 @@ static void lts_aga_fm0_dpf1_p6_ilores_dlores(void) } loaded_pix = getbpl6(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -743,7 +743,7 @@ static void lts_aga_fm0_dpf1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -783,7 +783,7 @@ static void lts_aga_fm0_ehb0_p6_ilores_dlores(void) } loaded_pix = getbpl6(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -803,7 +803,7 @@ static void lts_aga_fm0_ehb0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -846,7 +846,7 @@ static void lts_aga_fm0_ehb1_p6_ilores_dlores(void) } loaded_pix = getbpl6(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -866,7 +866,7 @@ static void lts_aga_fm0_ehb1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -900,7 +900,7 @@ static void lts_aga_fm0_ham0_p6_ilores_dlores(void) } loaded_pix = getbpl6(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -920,7 +920,7 @@ static void lts_aga_fm0_ham0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -957,7 +957,7 @@ static void lts_aga_fm0_ham1_p6_ilores_dlores(void) } loaded_pix = getbpl6(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -977,7 +977,7 @@ static void lts_aga_fm0_ham1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1012,7 +1012,7 @@ static void lts_aga_fm0_kehb0_p6_ilores_dlores(void) } loaded_pix = getbpl6(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1032,7 +1032,7 @@ static void lts_aga_fm0_kehb0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1070,7 +1070,7 @@ static void lts_aga_fm0_kehb1_p6_ilores_dlores(void) } loaded_pix = getbpl6(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1090,7 +1090,7 @@ static void lts_aga_fm0_kehb1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1124,7 +1124,7 @@ static void lts_aga_fm0_n0_p8_ilores_dlores(void) } loaded_pix = getbpl8(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1144,7 +1144,7 @@ static void lts_aga_fm0_n0_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1181,7 +1181,7 @@ static void lts_aga_fm0_n1_p8_ilores_dlores(void) } loaded_pix = getbpl8(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1201,7 +1201,7 @@ static void lts_aga_fm0_n1_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1240,7 +1240,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dlores(void) } loaded_pix = getbpl8(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1260,7 +1260,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1302,7 +1302,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dlores(void) } loaded_pix = getbpl8(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1322,7 +1322,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1364,7 +1364,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dlores(void) } loaded_pix = getbpl8(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1384,7 +1384,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1421,7 +1421,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dlores(void) } loaded_pix = getbpl8(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1441,7 +1441,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1492,7 +1492,7 @@ static void lts_aga_fm0_n0_p2_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1518,7 +1518,7 @@ static void lts_aga_fm0_n0_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1564,7 +1564,7 @@ static void lts_aga_fm0_n1_p2_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1590,7 +1590,7 @@ static void lts_aga_fm0_n1_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1638,7 +1638,7 @@ static void lts_aga_fm0_dpf0_p2_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1664,7 +1664,7 @@ static void lts_aga_fm0_dpf0_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1715,7 +1715,7 @@ static void lts_aga_fm0_dpf1_p2_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1741,7 +1741,7 @@ static void lts_aga_fm0_dpf1_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1808,7 +1808,7 @@ static void lts_aga_fm0_n0_p4_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1834,7 +1834,7 @@ static void lts_aga_fm0_n0_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1880,7 +1880,7 @@ static void lts_aga_fm0_n1_p4_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1906,7 +1906,7 @@ static void lts_aga_fm0_n1_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1954,7 +1954,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1980,7 +1980,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2031,7 +2031,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2057,7 +2057,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2124,7 +2124,7 @@ static void lts_aga_fm0_n0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2150,7 +2150,7 @@ static void lts_aga_fm0_n0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2196,7 +2196,7 @@ static void lts_aga_fm0_n1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2222,7 +2222,7 @@ static void lts_aga_fm0_n1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2270,7 +2270,7 @@ static void lts_aga_fm0_dpf0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2296,7 +2296,7 @@ static void lts_aga_fm0_dpf0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2347,7 +2347,7 @@ static void lts_aga_fm0_dpf1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2373,7 +2373,7 @@ static void lts_aga_fm0_dpf1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2422,7 +2422,7 @@ static void lts_aga_fm0_ehb0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2448,7 +2448,7 @@ static void lts_aga_fm0_ehb0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2500,7 +2500,7 @@ static void lts_aga_fm0_ehb1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2526,7 +2526,7 @@ static void lts_aga_fm0_ehb1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2569,7 +2569,7 @@ static void lts_aga_fm0_ham0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2595,7 +2595,7 @@ static void lts_aga_fm0_ham0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2641,7 +2641,7 @@ static void lts_aga_fm0_ham1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2667,7 +2667,7 @@ static void lts_aga_fm0_ham1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2711,7 +2711,7 @@ static void lts_aga_fm0_kehb0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2737,7 +2737,7 @@ static void lts_aga_fm0_kehb0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2784,7 +2784,7 @@ static void lts_aga_fm0_kehb1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2810,7 +2810,7 @@ static void lts_aga_fm0_kehb1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2853,7 +2853,7 @@ static void lts_aga_fm0_n0_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2879,7 +2879,7 @@ static void lts_aga_fm0_n0_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2925,7 +2925,7 @@ static void lts_aga_fm0_n1_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2951,7 +2951,7 @@ static void lts_aga_fm0_n1_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2999,7 +2999,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3025,7 +3025,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3076,7 +3076,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3102,7 +3102,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3153,7 +3153,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3179,7 +3179,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3225,7 +3225,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3251,7 +3251,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3294,7 +3294,7 @@ static void lts_aga_fm0_n0_p2_ihires_dlores(void) loaded_pix = getbpl2(); loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3314,7 +3314,7 @@ static void lts_aga_fm0_n0_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3352,7 +3352,7 @@ static void lts_aga_fm0_n1_p2_ihires_dlores(void) loaded_pix = getbpl2(); loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3372,7 +3372,7 @@ static void lts_aga_fm0_n1_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3412,7 +3412,7 @@ static void lts_aga_fm0_dpf0_p2_ihires_dlores(void) loaded_pix = getbpl2(); loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3432,7 +3432,7 @@ static void lts_aga_fm0_dpf0_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3475,7 +3475,7 @@ static void lts_aga_fm0_dpf1_p2_ihires_dlores(void) loaded_pix = getbpl2(); loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3495,7 +3495,7 @@ static void lts_aga_fm0_dpf1_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3554,7 +3554,7 @@ static void lts_aga_fm0_n0_p4_ihires_dlores(void) loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3574,7 +3574,7 @@ static void lts_aga_fm0_n0_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3612,7 +3612,7 @@ static void lts_aga_fm0_n1_p4_ihires_dlores(void) loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3632,7 +3632,7 @@ static void lts_aga_fm0_n1_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3672,7 +3672,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dlores(void) loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3692,7 +3692,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3735,7 +3735,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dlores(void) loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3755,7 +3755,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3903,7 +3903,7 @@ static void lts_aga_fm0_n0_p2_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3929,7 +3929,7 @@ static void lts_aga_fm0_n0_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3976,7 +3976,7 @@ static void lts_aga_fm0_n1_p2_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4002,7 +4002,7 @@ static void lts_aga_fm0_n1_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4051,7 +4051,7 @@ static void lts_aga_fm0_dpf0_p2_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4077,7 +4077,7 @@ static void lts_aga_fm0_dpf0_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4129,7 +4129,7 @@ static void lts_aga_fm0_dpf1_p2_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4155,7 +4155,7 @@ static void lts_aga_fm0_dpf1_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4223,7 +4223,7 @@ static void lts_aga_fm0_n0_p4_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4249,7 +4249,7 @@ static void lts_aga_fm0_n0_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4296,7 +4296,7 @@ static void lts_aga_fm0_n1_p4_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4322,7 +4322,7 @@ static void lts_aga_fm0_n1_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4371,7 +4371,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4397,7 +4397,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4449,7 +4449,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4475,7 +4475,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4616,7 +4616,7 @@ static void lts_aga_fm0_n0_p2_ishres_dlores(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4636,7 +4636,7 @@ static void lts_aga_fm0_n0_p2_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4676,7 +4676,7 @@ static void lts_aga_fm0_n1_p2_ishres_dlores(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4696,7 +4696,7 @@ static void lts_aga_fm0_n1_p2_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4738,7 +4738,7 @@ static void lts_aga_fm0_dpf0_p2_ishres_dlores(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4758,7 +4758,7 @@ static void lts_aga_fm0_dpf0_p2_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4803,7 +4803,7 @@ static void lts_aga_fm0_dpf1_p2_ishres_dlores(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4823,7 +4823,7 @@ static void lts_aga_fm0_dpf1_p2_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5013,7 +5013,7 @@ static void lts_aga_fm0_n0_p2_ishres_dlores_spr(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5039,7 +5039,7 @@ static void lts_aga_fm0_n0_p2_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5088,7 +5088,7 @@ static void lts_aga_fm0_n1_p2_ishres_dlores_spr(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5114,7 +5114,7 @@ static void lts_aga_fm0_n1_p2_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5165,7 +5165,7 @@ static void lts_aga_fm0_dpf0_p2_ishres_dlores_spr(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5191,7 +5191,7 @@ static void lts_aga_fm0_dpf0_p2_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5245,7 +5245,7 @@ static void lts_aga_fm0_dpf1_p2_ishres_dlores_spr(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5271,7 +5271,7 @@ static void lts_aga_fm0_dpf1_p2_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5478,7 +5478,7 @@ static void lts_aga_fm0_n0_p2_ilores_dhires(void) loaded_pix = getbpl2(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -5507,7 +5507,7 @@ static void lts_aga_fm0_n0_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5592,7 +5592,7 @@ static void lts_aga_fm0_n1_p2_ilores_dhires(void) loaded_pix = getbpl2(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -5621,7 +5621,7 @@ static void lts_aga_fm0_n1_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5694,7 +5694,7 @@ static void lts_aga_fm0_dpf0_p2_ilores_dhires(void) loaded_pix = getbpl2(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -5723,7 +5723,7 @@ static void lts_aga_fm0_dpf0_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5818,7 +5818,7 @@ static void lts_aga_fm0_dpf1_p2_ilores_dhires(void) loaded_pix = getbpl2(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -5847,7 +5847,7 @@ static void lts_aga_fm0_dpf1_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5934,7 +5934,7 @@ static void lts_aga_fm0_n0_p4_ilores_dhires(void) loaded_pix = getbpl4(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -5963,7 +5963,7 @@ static void lts_aga_fm0_n0_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6048,7 +6048,7 @@ static void lts_aga_fm0_n1_p4_ilores_dhires(void) loaded_pix = getbpl4(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -6077,7 +6077,7 @@ static void lts_aga_fm0_n1_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6150,7 +6150,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dhires(void) loaded_pix = getbpl4(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -6179,7 +6179,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6274,7 +6274,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dhires(void) loaded_pix = getbpl4(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -6303,7 +6303,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6390,7 +6390,7 @@ static void lts_aga_fm0_n0_p6_ilores_dhires(void) loaded_pix = getbpl6(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -6419,7 +6419,7 @@ static void lts_aga_fm0_n0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6504,7 +6504,7 @@ static void lts_aga_fm0_n1_p6_ilores_dhires(void) loaded_pix = getbpl6(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -6533,7 +6533,7 @@ static void lts_aga_fm0_n1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6606,7 +6606,7 @@ static void lts_aga_fm0_dpf0_p6_ilores_dhires(void) loaded_pix = getbpl6(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -6635,7 +6635,7 @@ static void lts_aga_fm0_dpf0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6730,7 +6730,7 @@ static void lts_aga_fm0_dpf1_p6_ilores_dhires(void) loaded_pix = getbpl6(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -6759,7 +6759,7 @@ static void lts_aga_fm0_dpf1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6834,7 +6834,7 @@ static void lts_aga_fm0_ehb0_p6_ilores_dhires(void) loaded_pix = getbpl6(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -6863,7 +6863,7 @@ static void lts_aga_fm0_ehb0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6960,7 +6960,7 @@ static void lts_aga_fm0_ehb1_p6_ilores_dhires(void) loaded_pix = getbpl6(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -6989,7 +6989,7 @@ static void lts_aga_fm0_ehb1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7052,7 +7052,7 @@ static void lts_aga_fm0_ham0_p6_ilores_dhires(void) loaded_pix = getbpl6(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -7081,7 +7081,7 @@ static void lts_aga_fm0_ham0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7166,7 +7166,7 @@ static void lts_aga_fm0_ham1_p6_ilores_dhires(void) loaded_pix = getbpl6(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -7195,7 +7195,7 @@ static void lts_aga_fm0_ham1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7260,7 +7260,7 @@ static void lts_aga_fm0_kehb0_p6_ilores_dhires(void) loaded_pix = getbpl6(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -7289,7 +7289,7 @@ static void lts_aga_fm0_kehb0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7376,7 +7376,7 @@ static void lts_aga_fm0_kehb1_p6_ilores_dhires(void) loaded_pix = getbpl6(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -7405,7 +7405,7 @@ static void lts_aga_fm0_kehb1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7468,7 +7468,7 @@ static void lts_aga_fm0_n0_p8_ilores_dhires(void) loaded_pix = getbpl8(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -7497,7 +7497,7 @@ static void lts_aga_fm0_n0_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7582,7 +7582,7 @@ static void lts_aga_fm0_n1_p8_ilores_dhires(void) loaded_pix = getbpl8(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -7611,7 +7611,7 @@ static void lts_aga_fm0_n1_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7684,7 +7684,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dhires(void) loaded_pix = getbpl8(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -7713,7 +7713,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7808,7 +7808,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dhires(void) loaded_pix = getbpl8(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -7837,7 +7837,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7908,7 +7908,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dhires(void) loaded_pix = getbpl8(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -7937,7 +7937,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8022,7 +8022,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dhires(void) loaded_pix = getbpl8(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -8051,7 +8051,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8140,7 +8140,7 @@ static void lts_aga_fm0_n0_p2_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8181,7 +8181,7 @@ static void lts_aga_fm0_n0_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8284,7 +8284,7 @@ static void lts_aga_fm0_n1_p2_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8325,7 +8325,7 @@ static void lts_aga_fm0_n1_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8416,7 +8416,7 @@ static void lts_aga_fm0_dpf0_p2_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8457,7 +8457,7 @@ static void lts_aga_fm0_dpf0_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8570,7 +8570,7 @@ static void lts_aga_fm0_dpf1_p2_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8611,7 +8611,7 @@ static void lts_aga_fm0_dpf1_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8716,7 +8716,7 @@ static void lts_aga_fm0_n0_p4_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8757,7 +8757,7 @@ static void lts_aga_fm0_n0_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8860,7 +8860,7 @@ static void lts_aga_fm0_n1_p4_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8901,7 +8901,7 @@ static void lts_aga_fm0_n1_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8992,7 +8992,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9033,7 +9033,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9146,7 +9146,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9187,7 +9187,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9292,7 +9292,7 @@ static void lts_aga_fm0_n0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9333,7 +9333,7 @@ static void lts_aga_fm0_n0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9436,7 +9436,7 @@ static void lts_aga_fm0_n1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9477,7 +9477,7 @@ static void lts_aga_fm0_n1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9568,7 +9568,7 @@ static void lts_aga_fm0_dpf0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9609,7 +9609,7 @@ static void lts_aga_fm0_dpf0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9722,7 +9722,7 @@ static void lts_aga_fm0_dpf1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9763,7 +9763,7 @@ static void lts_aga_fm0_dpf1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9856,7 +9856,7 @@ static void lts_aga_fm0_ehb0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9897,7 +9897,7 @@ static void lts_aga_fm0_ehb0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10012,7 +10012,7 @@ static void lts_aga_fm0_ehb1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10053,7 +10053,7 @@ static void lts_aga_fm0_ehb1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10134,7 +10134,7 @@ static void lts_aga_fm0_ham0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10175,7 +10175,7 @@ static void lts_aga_fm0_ham0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10278,7 +10278,7 @@ static void lts_aga_fm0_ham1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10319,7 +10319,7 @@ static void lts_aga_fm0_ham1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10402,7 +10402,7 @@ static void lts_aga_fm0_kehb0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10443,7 +10443,7 @@ static void lts_aga_fm0_kehb0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10548,7 +10548,7 @@ static void lts_aga_fm0_kehb1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10589,7 +10589,7 @@ static void lts_aga_fm0_kehb1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10670,7 +10670,7 @@ static void lts_aga_fm0_n0_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10711,7 +10711,7 @@ static void lts_aga_fm0_n0_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10814,7 +10814,7 @@ static void lts_aga_fm0_n1_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10855,7 +10855,7 @@ static void lts_aga_fm0_n1_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10946,7 +10946,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10987,7 +10987,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11100,7 +11100,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11141,7 +11141,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11230,7 +11230,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11271,7 +11271,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11374,7 +11374,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11415,7 +11415,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11474,7 +11474,7 @@ static void lts_aga_fm0_n0_p2_ihires_dhires(void) } loaded_pix = getbpl2(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11503,7 +11503,7 @@ static void lts_aga_fm0_n0_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11560,7 +11560,7 @@ static void lts_aga_fm0_n1_p2_ihires_dhires(void) } loaded_pix = getbpl2(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11589,7 +11589,7 @@ static void lts_aga_fm0_n1_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11650,7 +11650,7 @@ static void lts_aga_fm0_dpf0_p2_ihires_dhires(void) } loaded_pix = getbpl2(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11679,7 +11679,7 @@ static void lts_aga_fm0_dpf0_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11746,7 +11746,7 @@ static void lts_aga_fm0_dpf1_p2_ihires_dhires(void) } loaded_pix = getbpl2(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11775,7 +11775,7 @@ static void lts_aga_fm0_dpf1_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11850,7 +11850,7 @@ static void lts_aga_fm0_n0_p4_ihires_dhires(void) } loaded_pix = getbpl4(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11879,7 +11879,7 @@ static void lts_aga_fm0_n0_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11936,7 +11936,7 @@ static void lts_aga_fm0_n1_p4_ihires_dhires(void) } loaded_pix = getbpl4(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11965,7 +11965,7 @@ static void lts_aga_fm0_n1_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12026,7 +12026,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dhires(void) } loaded_pix = getbpl4(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -12055,7 +12055,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12122,7 +12122,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dhires(void) } loaded_pix = getbpl4(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -12151,7 +12151,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12324,7 +12324,7 @@ static void lts_aga_fm0_n0_p2_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12365,7 +12365,7 @@ static void lts_aga_fm0_n0_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12440,7 +12440,7 @@ static void lts_aga_fm0_n1_p2_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12481,7 +12481,7 @@ static void lts_aga_fm0_n1_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12560,7 +12560,7 @@ static void lts_aga_fm0_dpf0_p2_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12601,7 +12601,7 @@ static void lts_aga_fm0_dpf0_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12686,7 +12686,7 @@ static void lts_aga_fm0_dpf1_p2_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12727,7 +12727,7 @@ static void lts_aga_fm0_dpf1_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12820,7 +12820,7 @@ static void lts_aga_fm0_n0_p4_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12861,7 +12861,7 @@ static void lts_aga_fm0_n0_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12936,7 +12936,7 @@ static void lts_aga_fm0_n1_p4_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12977,7 +12977,7 @@ static void lts_aga_fm0_n1_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13056,7 +13056,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13097,7 +13097,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13182,7 +13182,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13223,7 +13223,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13380,7 +13380,7 @@ static void lts_aga_fm0_n0_p2_ishres_dhires(void) loaded_pix = getbpl2(); loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -13409,7 +13409,7 @@ static void lts_aga_fm0_n0_p2_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13468,7 +13468,7 @@ static void lts_aga_fm0_n1_p2_ishres_dhires(void) loaded_pix = getbpl2(); loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -13497,7 +13497,7 @@ static void lts_aga_fm0_n1_p2_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13560,7 +13560,7 @@ static void lts_aga_fm0_dpf0_p2_ishres_dhires(void) loaded_pix = getbpl2(); loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -13589,7 +13589,7 @@ static void lts_aga_fm0_dpf0_p2_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13658,7 +13658,7 @@ static void lts_aga_fm0_dpf1_p2_ishres_dhires(void) loaded_pix = getbpl2(); loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -13687,7 +13687,7 @@ static void lts_aga_fm0_dpf1_p2_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13902,7 +13902,7 @@ static void lts_aga_fm0_n0_p2_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13943,7 +13943,7 @@ static void lts_aga_fm0_n0_p2_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14020,7 +14020,7 @@ static void lts_aga_fm0_n1_p2_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14061,7 +14061,7 @@ static void lts_aga_fm0_n1_p2_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14142,7 +14142,7 @@ static void lts_aga_fm0_dpf0_p2_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14183,7 +14183,7 @@ static void lts_aga_fm0_dpf0_p2_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14270,7 +14270,7 @@ static void lts_aga_fm0_dpf1_p2_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14311,7 +14311,7 @@ static void lts_aga_fm0_dpf1_p2_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14564,7 +14564,7 @@ static void lts_aga_fm0_n0_p2_ilores_dshres(void) loaded_pix = getbpl2(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -14611,7 +14611,7 @@ static void lts_aga_fm0_n0_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14764,7 +14764,7 @@ static void lts_aga_fm0_n1_p2_ilores_dshres(void) loaded_pix = getbpl2(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -14811,7 +14811,7 @@ static void lts_aga_fm0_n1_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14940,7 +14940,7 @@ static void lts_aga_fm0_dpf0_p2_ilores_dshres(void) loaded_pix = getbpl2(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -14987,7 +14987,7 @@ static void lts_aga_fm0_dpf0_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15160,7 +15160,7 @@ static void lts_aga_fm0_dpf1_p2_ilores_dshres(void) loaded_pix = getbpl2(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -15207,7 +15207,7 @@ static void lts_aga_fm0_dpf1_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15340,7 +15340,7 @@ static void lts_aga_fm0_n0_p4_ilores_dshres(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -15387,7 +15387,7 @@ static void lts_aga_fm0_n0_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15540,7 +15540,7 @@ static void lts_aga_fm0_n1_p4_ilores_dshres(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -15587,7 +15587,7 @@ static void lts_aga_fm0_n1_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15716,7 +15716,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dshres(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -15763,7 +15763,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15936,7 +15936,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dshres(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -15983,7 +15983,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16116,7 +16116,7 @@ static void lts_aga_fm0_n0_p6_ilores_dshres(void) loaded_pix = getbpl6(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -16163,7 +16163,7 @@ static void lts_aga_fm0_n0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16316,7 +16316,7 @@ static void lts_aga_fm0_n1_p6_ilores_dshres(void) loaded_pix = getbpl6(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -16363,7 +16363,7 @@ static void lts_aga_fm0_n1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16492,7 +16492,7 @@ static void lts_aga_fm0_dpf0_p6_ilores_dshres(void) loaded_pix = getbpl6(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -16539,7 +16539,7 @@ static void lts_aga_fm0_dpf0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16712,7 +16712,7 @@ static void lts_aga_fm0_dpf1_p6_ilores_dshres(void) loaded_pix = getbpl6(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -16759,7 +16759,7 @@ static void lts_aga_fm0_dpf1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16892,7 +16892,7 @@ static void lts_aga_fm0_ehb0_p6_ilores_dshres(void) loaded_pix = getbpl6(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -16939,7 +16939,7 @@ static void lts_aga_fm0_ehb0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17116,7 +17116,7 @@ static void lts_aga_fm0_ehb1_p6_ilores_dshres(void) loaded_pix = getbpl6(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -17163,7 +17163,7 @@ static void lts_aga_fm0_ehb1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17272,7 +17272,7 @@ static void lts_aga_fm0_ham0_p6_ilores_dshres(void) loaded_pix = getbpl6(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -17319,7 +17319,7 @@ static void lts_aga_fm0_ham0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17472,7 +17472,7 @@ static void lts_aga_fm0_ham1_p6_ilores_dshres(void) loaded_pix = getbpl6(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -17519,7 +17519,7 @@ static void lts_aga_fm0_ham1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17632,7 +17632,7 @@ static void lts_aga_fm0_kehb0_p6_ilores_dshres(void) loaded_pix = getbpl6(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -17679,7 +17679,7 @@ static void lts_aga_fm0_kehb0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17836,7 +17836,7 @@ static void lts_aga_fm0_kehb1_p6_ilores_dshres(void) loaded_pix = getbpl6(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -17883,7 +17883,7 @@ static void lts_aga_fm0_kehb1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17992,7 +17992,7 @@ static void lts_aga_fm0_n0_p8_ilores_dshres(void) loaded_pix = getbpl8(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -18039,7 +18039,7 @@ static void lts_aga_fm0_n0_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18192,7 +18192,7 @@ static void lts_aga_fm0_n1_p8_ilores_dshres(void) loaded_pix = getbpl8(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -18239,7 +18239,7 @@ static void lts_aga_fm0_n1_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18368,7 +18368,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dshres(void) loaded_pix = getbpl8(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -18415,7 +18415,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18588,7 +18588,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dshres(void) loaded_pix = getbpl8(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -18635,7 +18635,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18752,7 +18752,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dshres(void) loaded_pix = getbpl8(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -18799,7 +18799,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18952,7 +18952,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dshres(void) loaded_pix = getbpl8(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -18999,7 +18999,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19152,7 +19152,7 @@ static void lts_aga_fm0_n0_p2_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19223,7 +19223,7 @@ static void lts_aga_fm0_n0_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19412,7 +19412,7 @@ static void lts_aga_fm0_n1_p2_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19483,7 +19483,7 @@ static void lts_aga_fm0_n1_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19648,7 +19648,7 @@ static void lts_aga_fm0_dpf0_p2_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19719,7 +19719,7 @@ static void lts_aga_fm0_dpf0_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19928,7 +19928,7 @@ static void lts_aga_fm0_dpf1_p2_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19999,7 +19999,7 @@ static void lts_aga_fm0_dpf1_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20168,7 +20168,7 @@ static void lts_aga_fm0_n0_p4_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20239,7 +20239,7 @@ static void lts_aga_fm0_n0_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20428,7 +20428,7 @@ static void lts_aga_fm0_n1_p4_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20499,7 +20499,7 @@ static void lts_aga_fm0_n1_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20664,7 +20664,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20735,7 +20735,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20944,7 +20944,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21015,7 +21015,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21184,7 +21184,7 @@ static void lts_aga_fm0_n0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21255,7 +21255,7 @@ static void lts_aga_fm0_n0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21444,7 +21444,7 @@ static void lts_aga_fm0_n1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21515,7 +21515,7 @@ static void lts_aga_fm0_n1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21680,7 +21680,7 @@ static void lts_aga_fm0_dpf0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21751,7 +21751,7 @@ static void lts_aga_fm0_dpf0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21960,7 +21960,7 @@ static void lts_aga_fm0_dpf1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -22031,7 +22031,7 @@ static void lts_aga_fm0_dpf1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22200,7 +22200,7 @@ static void lts_aga_fm0_ehb0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -22271,7 +22271,7 @@ static void lts_aga_fm0_ehb0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22484,7 +22484,7 @@ static void lts_aga_fm0_ehb1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -22555,7 +22555,7 @@ static void lts_aga_fm0_ehb1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22700,7 +22700,7 @@ static void lts_aga_fm0_ham0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -22771,7 +22771,7 @@ static void lts_aga_fm0_ham0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22960,7 +22960,7 @@ static void lts_aga_fm0_ham1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -23031,7 +23031,7 @@ static void lts_aga_fm0_ham1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23180,7 +23180,7 @@ static void lts_aga_fm0_kehb0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -23251,7 +23251,7 @@ static void lts_aga_fm0_kehb0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23444,7 +23444,7 @@ static void lts_aga_fm0_kehb1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -23515,7 +23515,7 @@ static void lts_aga_fm0_kehb1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23660,7 +23660,7 @@ static void lts_aga_fm0_n0_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -23731,7 +23731,7 @@ static void lts_aga_fm0_n0_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23920,7 +23920,7 @@ static void lts_aga_fm0_n1_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -23991,7 +23991,7 @@ static void lts_aga_fm0_n1_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24156,7 +24156,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24227,7 +24227,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24436,7 +24436,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24507,7 +24507,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24660,7 +24660,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24731,7 +24731,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24920,7 +24920,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24991,7 +24991,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25108,7 +25108,7 @@ static void lts_aga_fm0_n0_p2_ihires_dshres(void) loaded_pix = getbpl2(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -25155,7 +25155,7 @@ static void lts_aga_fm0_n0_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25308,7 +25308,7 @@ static void lts_aga_fm0_n1_p2_ihires_dshres(void) loaded_pix = getbpl2(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -25355,7 +25355,7 @@ static void lts_aga_fm0_n1_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25484,7 +25484,7 @@ static void lts_aga_fm0_dpf0_p2_ihires_dshres(void) loaded_pix = getbpl2(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -25531,7 +25531,7 @@ static void lts_aga_fm0_dpf0_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25704,7 +25704,7 @@ static void lts_aga_fm0_dpf1_p2_ihires_dshres(void) loaded_pix = getbpl2(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -25751,7 +25751,7 @@ static void lts_aga_fm0_dpf1_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25884,7 +25884,7 @@ static void lts_aga_fm0_n0_p4_ihires_dshres(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -25931,7 +25931,7 @@ static void lts_aga_fm0_n0_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26084,7 +26084,7 @@ static void lts_aga_fm0_n1_p4_ihires_dshres(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -26131,7 +26131,7 @@ static void lts_aga_fm0_n1_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26260,7 +26260,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dshres(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -26307,7 +26307,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26480,7 +26480,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dshres(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -26527,7 +26527,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26776,7 +26776,7 @@ static void lts_aga_fm0_n0_p2_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26847,7 +26847,7 @@ static void lts_aga_fm0_n0_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27036,7 +27036,7 @@ static void lts_aga_fm0_n1_p2_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -27107,7 +27107,7 @@ static void lts_aga_fm0_n1_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27272,7 +27272,7 @@ static void lts_aga_fm0_dpf0_p2_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -27343,7 +27343,7 @@ static void lts_aga_fm0_dpf0_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27552,7 +27552,7 @@ static void lts_aga_fm0_dpf1_p2_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -27623,7 +27623,7 @@ static void lts_aga_fm0_dpf1_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27792,7 +27792,7 @@ static void lts_aga_fm0_n0_p4_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -27863,7 +27863,7 @@ static void lts_aga_fm0_n0_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28052,7 +28052,7 @@ static void lts_aga_fm0_n1_p4_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -28123,7 +28123,7 @@ static void lts_aga_fm0_n1_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28288,7 +28288,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -28359,7 +28359,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28568,7 +28568,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -28639,7 +28639,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28828,7 +28828,7 @@ static void lts_aga_fm0_n0_p2_ishres_dshres(void) } loaded_pix = getbpl2(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -28875,7 +28875,7 @@ static void lts_aga_fm0_n0_p2_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28972,7 +28972,7 @@ static void lts_aga_fm0_n1_p2_ishres_dshres(void) } loaded_pix = getbpl2(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -29019,7 +29019,7 @@ static void lts_aga_fm0_n1_p2_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29124,7 +29124,7 @@ static void lts_aga_fm0_dpf0_p2_ishres_dshres(void) } loaded_pix = getbpl2(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -29171,7 +29171,7 @@ static void lts_aga_fm0_dpf0_p2_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29288,7 +29288,7 @@ static void lts_aga_fm0_dpf1_p2_ishres_dshres(void) } loaded_pix = getbpl2(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -29335,7 +29335,7 @@ static void lts_aga_fm0_dpf1_p2_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29600,7 +29600,7 @@ static void lts_aga_fm0_n0_p2_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -29671,7 +29671,7 @@ static void lts_aga_fm0_n0_p2_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29804,7 +29804,7 @@ static void lts_aga_fm0_n1_p2_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -29875,7 +29875,7 @@ static void lts_aga_fm0_n1_p2_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -30016,7 +30016,7 @@ static void lts_aga_fm0_dpf0_p2_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -30087,7 +30087,7 @@ static void lts_aga_fm0_dpf0_p2_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -30240,7 +30240,7 @@ static void lts_aga_fm0_dpf1_p2_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -30311,7 +30311,7 @@ static void lts_aga_fm0_dpf1_p2_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } diff --git a/linetoscr_aga_fm0_genlock.cpp b/linetoscr_aga_fm0_genlock.cpp index 99d6de00..f1e7820b 100644 --- a/linetoscr_aga_fm0_genlock.cpp +++ b/linetoscr_aga_fm0_genlock.cpp @@ -36,7 +36,7 @@ static void lts_aga_fm0_n0_p4_ilores_dlores_genlock(void) } loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -58,7 +58,7 @@ static void lts_aga_fm0_n0_p4_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -98,7 +98,7 @@ static void lts_aga_fm0_n1_p4_ilores_dlores_genlock(void) } loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -120,7 +120,7 @@ static void lts_aga_fm0_n1_p4_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -162,7 +162,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dlores_genlock(void) } loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -184,7 +184,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -229,7 +229,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dlores_genlock(void) } loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -251,7 +251,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -312,7 +312,7 @@ static void lts_aga_fm0_n0_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -334,7 +334,7 @@ static void lts_aga_fm0_n0_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -374,7 +374,7 @@ static void lts_aga_fm0_n1_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -396,7 +396,7 @@ static void lts_aga_fm0_n1_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -438,7 +438,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -460,7 +460,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -505,7 +505,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -527,7 +527,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -572,7 +572,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -594,7 +594,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -634,7 +634,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -656,7 +656,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -710,7 +710,7 @@ static void lts_aga_fm0_n0_p4_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -740,7 +740,7 @@ static void lts_aga_fm0_n0_p4_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -789,7 +789,7 @@ static void lts_aga_fm0_n1_p4_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -819,7 +819,7 @@ static void lts_aga_fm0_n1_p4_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -870,7 +870,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -900,7 +900,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -954,7 +954,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -984,7 +984,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1054,7 +1054,7 @@ static void lts_aga_fm0_n0_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1084,7 +1084,7 @@ static void lts_aga_fm0_n0_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1133,7 +1133,7 @@ static void lts_aga_fm0_n1_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1163,7 +1163,7 @@ static void lts_aga_fm0_n1_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1214,7 +1214,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1244,7 +1244,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1298,7 +1298,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1328,7 +1328,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1382,7 +1382,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1412,7 +1412,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1461,7 +1461,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1491,7 +1491,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1537,7 +1537,7 @@ static void lts_aga_fm0_n0_p4_ihires_dlores_genlock(void) loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1559,7 +1559,7 @@ static void lts_aga_fm0_n0_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1600,7 +1600,7 @@ static void lts_aga_fm0_n1_p4_ihires_dlores_genlock(void) loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1622,7 +1622,7 @@ static void lts_aga_fm0_n1_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1665,7 +1665,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dlores_genlock(void) loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1687,7 +1687,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1733,7 +1733,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dlores_genlock(void) loaded_pix = getbpl4(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1755,7 +1755,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1866,7 +1866,7 @@ static void lts_aga_fm0_n0_p4_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1896,7 +1896,7 @@ static void lts_aga_fm0_n0_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1946,7 +1946,7 @@ static void lts_aga_fm0_n1_p4_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1976,7 +1976,7 @@ static void lts_aga_fm0_n1_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2028,7 +2028,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2058,7 +2058,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2113,7 +2113,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2143,7 +2143,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2436,7 +2436,7 @@ static void lts_aga_fm0_n0_p4_ilores_dhires_genlock(void) loaded_pix = getbpl4(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -2469,7 +2469,7 @@ static void lts_aga_fm0_n0_p4_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2560,7 +2560,7 @@ static void lts_aga_fm0_n1_p4_ilores_dhires_genlock(void) loaded_pix = getbpl4(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -2593,7 +2593,7 @@ static void lts_aga_fm0_n1_p4_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2672,7 +2672,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dhires_genlock(void) loaded_pix = getbpl4(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -2705,7 +2705,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2806,7 +2806,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dhires_genlock(void) loaded_pix = getbpl4(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -2839,7 +2839,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2932,7 +2932,7 @@ static void lts_aga_fm0_n0_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -2965,7 +2965,7 @@ static void lts_aga_fm0_n0_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3056,7 +3056,7 @@ static void lts_aga_fm0_n1_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -3089,7 +3089,7 @@ static void lts_aga_fm0_n1_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3168,7 +3168,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -3201,7 +3201,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3302,7 +3302,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -3335,7 +3335,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3412,7 +3412,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -3445,7 +3445,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3536,7 +3536,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -3569,7 +3569,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3664,7 +3664,7 @@ static void lts_aga_fm0_n0_p4_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3713,7 +3713,7 @@ static void lts_aga_fm0_n0_p4_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3822,7 +3822,7 @@ static void lts_aga_fm0_n1_p4_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3871,7 +3871,7 @@ static void lts_aga_fm0_n1_p4_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3968,7 +3968,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4017,7 +4017,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4136,7 +4136,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4185,7 +4185,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4296,7 +4296,7 @@ static void lts_aga_fm0_n0_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4345,7 +4345,7 @@ static void lts_aga_fm0_n0_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4454,7 +4454,7 @@ static void lts_aga_fm0_n1_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4503,7 +4503,7 @@ static void lts_aga_fm0_n1_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4600,7 +4600,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4649,7 +4649,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4768,7 +4768,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4817,7 +4817,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4912,7 +4912,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4961,7 +4961,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5070,7 +5070,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5119,7 +5119,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5184,7 +5184,7 @@ static void lts_aga_fm0_n0_p4_ihires_dhires_genlock(void) } loaded_pix = getbpl4(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5217,7 +5217,7 @@ static void lts_aga_fm0_n0_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5280,7 +5280,7 @@ static void lts_aga_fm0_n1_p4_ihires_dhires_genlock(void) } loaded_pix = getbpl4(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5313,7 +5313,7 @@ static void lts_aga_fm0_n1_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5380,7 +5380,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dhires_genlock(void) } loaded_pix = getbpl4(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5413,7 +5413,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5486,7 +5486,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dhires_genlock(void) } loaded_pix = getbpl4(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5519,7 +5519,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5658,7 +5658,7 @@ static void lts_aga_fm0_n0_p4_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5707,7 +5707,7 @@ static void lts_aga_fm0_n0_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5788,7 +5788,7 @@ static void lts_aga_fm0_n1_p4_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5837,7 +5837,7 @@ static void lts_aga_fm0_n1_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5922,7 +5922,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5971,7 +5971,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6062,7 +6062,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6111,7 +6111,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6456,7 +6456,7 @@ static void lts_aga_fm0_n0_p4_ilores_dshres_genlock(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -6511,7 +6511,7 @@ static void lts_aga_fm0_n0_p4_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6676,7 +6676,7 @@ static void lts_aga_fm0_n1_p4_ilores_dshres_genlock(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -6731,7 +6731,7 @@ static void lts_aga_fm0_n1_p4_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6872,7 +6872,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dshres_genlock(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -6927,7 +6927,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7112,7 +7112,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dshres_genlock(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -7167,7 +7167,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7312,7 +7312,7 @@ static void lts_aga_fm0_n0_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -7367,7 +7367,7 @@ static void lts_aga_fm0_n0_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7532,7 +7532,7 @@ static void lts_aga_fm0_n1_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -7587,7 +7587,7 @@ static void lts_aga_fm0_n1_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7728,7 +7728,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -7783,7 +7783,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7968,7 +7968,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -8023,7 +8023,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8152,7 +8152,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -8207,7 +8207,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8372,7 +8372,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -8427,7 +8427,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8592,7 +8592,7 @@ static void lts_aga_fm0_n0_p4_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8679,7 +8679,7 @@ static void lts_aga_fm0_n0_p4_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8880,7 +8880,7 @@ static void lts_aga_fm0_n1_p4_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8967,7 +8967,7 @@ static void lts_aga_fm0_n1_p4_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9144,7 +9144,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9231,7 +9231,7 @@ static void lts_aga_fm0_dpf0_p4_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9452,7 +9452,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9539,7 +9539,7 @@ static void lts_aga_fm0_dpf1_p4_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9720,7 +9720,7 @@ static void lts_aga_fm0_n0_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9807,7 +9807,7 @@ static void lts_aga_fm0_n0_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10008,7 +10008,7 @@ static void lts_aga_fm0_n1_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10095,7 +10095,7 @@ static void lts_aga_fm0_n1_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10272,7 +10272,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10359,7 +10359,7 @@ static void lts_aga_fm0_dpf0_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10580,7 +10580,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10667,7 +10667,7 @@ static void lts_aga_fm0_dpf1_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10832,7 +10832,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10919,7 +10919,7 @@ static void lts_aga_fm0_ham0_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11120,7 +11120,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11207,7 +11207,7 @@ static void lts_aga_fm0_ham1_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11336,7 +11336,7 @@ static void lts_aga_fm0_n0_p4_ihires_dshres_genlock(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -11391,7 +11391,7 @@ static void lts_aga_fm0_n0_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11556,7 +11556,7 @@ static void lts_aga_fm0_n1_p4_ihires_dshres_genlock(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -11611,7 +11611,7 @@ static void lts_aga_fm0_n1_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11752,7 +11752,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dshres_genlock(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -11807,7 +11807,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11992,7 +11992,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dshres_genlock(void) loaded_pix = getbpl4(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -12047,7 +12047,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12268,7 +12268,7 @@ static void lts_aga_fm0_n0_p4_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12355,7 +12355,7 @@ static void lts_aga_fm0_n0_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12556,7 +12556,7 @@ static void lts_aga_fm0_n1_p4_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12643,7 +12643,7 @@ static void lts_aga_fm0_n1_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12820,7 +12820,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12907,7 +12907,7 @@ static void lts_aga_fm0_dpf0_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13128,7 +13128,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13215,7 +13215,7 @@ static void lts_aga_fm0_dpf1_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } diff --git a/linetoscr_aga_fm1.cpp b/linetoscr_aga_fm1.cpp index cece5927..9367d553 100644 --- a/linetoscr_aga_fm1.cpp +++ b/linetoscr_aga_fm1.cpp @@ -33,7 +33,7 @@ static void lts_aga_fm1_n0_p2_ilores_dlores(void) } loaded_pix = getbpl2_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -53,7 +53,7 @@ static void lts_aga_fm1_n0_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -90,7 +90,7 @@ static void lts_aga_fm1_n1_p2_ilores_dlores(void) } loaded_pix = getbpl2_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -110,7 +110,7 @@ static void lts_aga_fm1_n1_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -149,7 +149,7 @@ static void lts_aga_fm1_dpf0_p2_ilores_dlores(void) } loaded_pix = getbpl2_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -169,7 +169,7 @@ static void lts_aga_fm1_dpf0_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -211,7 +211,7 @@ static void lts_aga_fm1_dpf1_p2_ilores_dlores(void) } loaded_pix = getbpl2_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -231,7 +231,7 @@ static void lts_aga_fm1_dpf1_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -289,7 +289,7 @@ static void lts_aga_fm1_n0_p4_ilores_dlores(void) } loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -309,7 +309,7 @@ static void lts_aga_fm1_n0_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -346,7 +346,7 @@ static void lts_aga_fm1_n1_p4_ilores_dlores(void) } loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -366,7 +366,7 @@ static void lts_aga_fm1_n1_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -405,7 +405,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dlores(void) } loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -425,7 +425,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -467,7 +467,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dlores(void) } loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -487,7 +487,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -545,7 +545,7 @@ static void lts_aga_fm1_n0_p6_ilores_dlores(void) } loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -565,7 +565,7 @@ static void lts_aga_fm1_n0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -602,7 +602,7 @@ static void lts_aga_fm1_n1_p6_ilores_dlores(void) } loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -622,7 +622,7 @@ static void lts_aga_fm1_n1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -661,7 +661,7 @@ static void lts_aga_fm1_dpf0_p6_ilores_dlores(void) } loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -681,7 +681,7 @@ static void lts_aga_fm1_dpf0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -723,7 +723,7 @@ static void lts_aga_fm1_dpf1_p6_ilores_dlores(void) } loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -743,7 +743,7 @@ static void lts_aga_fm1_dpf1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -783,7 +783,7 @@ static void lts_aga_fm1_ehb0_p6_ilores_dlores(void) } loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -803,7 +803,7 @@ static void lts_aga_fm1_ehb0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -846,7 +846,7 @@ static void lts_aga_fm1_ehb1_p6_ilores_dlores(void) } loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -866,7 +866,7 @@ static void lts_aga_fm1_ehb1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -900,7 +900,7 @@ static void lts_aga_fm1_ham0_p6_ilores_dlores(void) } loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -920,7 +920,7 @@ static void lts_aga_fm1_ham0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -957,7 +957,7 @@ static void lts_aga_fm1_ham1_p6_ilores_dlores(void) } loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -977,7 +977,7 @@ static void lts_aga_fm1_ham1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1012,7 +1012,7 @@ static void lts_aga_fm1_kehb0_p6_ilores_dlores(void) } loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1032,7 +1032,7 @@ static void lts_aga_fm1_kehb0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1070,7 +1070,7 @@ static void lts_aga_fm1_kehb1_p6_ilores_dlores(void) } loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1090,7 +1090,7 @@ static void lts_aga_fm1_kehb1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1124,7 +1124,7 @@ static void lts_aga_fm1_n0_p8_ilores_dlores(void) } loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1144,7 +1144,7 @@ static void lts_aga_fm1_n0_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1181,7 +1181,7 @@ static void lts_aga_fm1_n1_p8_ilores_dlores(void) } loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1201,7 +1201,7 @@ static void lts_aga_fm1_n1_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1240,7 +1240,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dlores(void) } loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1260,7 +1260,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1302,7 +1302,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dlores(void) } loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1322,7 +1322,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1364,7 +1364,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dlores(void) } loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1384,7 +1384,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1421,7 +1421,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dlores(void) } loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1441,7 +1441,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1492,7 +1492,7 @@ static void lts_aga_fm1_n0_p2_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1518,7 +1518,7 @@ static void lts_aga_fm1_n0_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1564,7 +1564,7 @@ static void lts_aga_fm1_n1_p2_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1590,7 +1590,7 @@ static void lts_aga_fm1_n1_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1638,7 +1638,7 @@ static void lts_aga_fm1_dpf0_p2_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1664,7 +1664,7 @@ static void lts_aga_fm1_dpf0_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1715,7 +1715,7 @@ static void lts_aga_fm1_dpf1_p2_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1741,7 +1741,7 @@ static void lts_aga_fm1_dpf1_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1808,7 +1808,7 @@ static void lts_aga_fm1_n0_p4_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1834,7 +1834,7 @@ static void lts_aga_fm1_n0_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1880,7 +1880,7 @@ static void lts_aga_fm1_n1_p4_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1906,7 +1906,7 @@ static void lts_aga_fm1_n1_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1954,7 +1954,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1980,7 +1980,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2031,7 +2031,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2057,7 +2057,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2124,7 +2124,7 @@ static void lts_aga_fm1_n0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2150,7 +2150,7 @@ static void lts_aga_fm1_n0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2196,7 +2196,7 @@ static void lts_aga_fm1_n1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2222,7 +2222,7 @@ static void lts_aga_fm1_n1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2270,7 +2270,7 @@ static void lts_aga_fm1_dpf0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2296,7 +2296,7 @@ static void lts_aga_fm1_dpf0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2347,7 +2347,7 @@ static void lts_aga_fm1_dpf1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2373,7 +2373,7 @@ static void lts_aga_fm1_dpf1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2422,7 +2422,7 @@ static void lts_aga_fm1_ehb0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2448,7 +2448,7 @@ static void lts_aga_fm1_ehb0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2500,7 +2500,7 @@ static void lts_aga_fm1_ehb1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2526,7 +2526,7 @@ static void lts_aga_fm1_ehb1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2569,7 +2569,7 @@ static void lts_aga_fm1_ham0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2595,7 +2595,7 @@ static void lts_aga_fm1_ham0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2641,7 +2641,7 @@ static void lts_aga_fm1_ham1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2667,7 +2667,7 @@ static void lts_aga_fm1_ham1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2711,7 +2711,7 @@ static void lts_aga_fm1_kehb0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2737,7 +2737,7 @@ static void lts_aga_fm1_kehb0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2784,7 +2784,7 @@ static void lts_aga_fm1_kehb1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2810,7 +2810,7 @@ static void lts_aga_fm1_kehb1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2853,7 +2853,7 @@ static void lts_aga_fm1_n0_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2879,7 +2879,7 @@ static void lts_aga_fm1_n0_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2925,7 +2925,7 @@ static void lts_aga_fm1_n1_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2951,7 +2951,7 @@ static void lts_aga_fm1_n1_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2999,7 +2999,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3025,7 +3025,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3076,7 +3076,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3102,7 +3102,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3153,7 +3153,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3179,7 +3179,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3225,7 +3225,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3251,7 +3251,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3294,7 +3294,7 @@ static void lts_aga_fm1_n0_p2_ihires_dlores(void) loaded_pix = getbpl2_32(); loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3314,7 +3314,7 @@ static void lts_aga_fm1_n0_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3352,7 +3352,7 @@ static void lts_aga_fm1_n1_p2_ihires_dlores(void) loaded_pix = getbpl2_32(); loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3372,7 +3372,7 @@ static void lts_aga_fm1_n1_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3412,7 +3412,7 @@ static void lts_aga_fm1_dpf0_p2_ihires_dlores(void) loaded_pix = getbpl2_32(); loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3432,7 +3432,7 @@ static void lts_aga_fm1_dpf0_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3475,7 +3475,7 @@ static void lts_aga_fm1_dpf1_p2_ihires_dlores(void) loaded_pix = getbpl2_32(); loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3495,7 +3495,7 @@ static void lts_aga_fm1_dpf1_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3554,7 +3554,7 @@ static void lts_aga_fm1_n0_p4_ihires_dlores(void) loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3574,7 +3574,7 @@ static void lts_aga_fm1_n0_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3612,7 +3612,7 @@ static void lts_aga_fm1_n1_p4_ihires_dlores(void) loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3632,7 +3632,7 @@ static void lts_aga_fm1_n1_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3672,7 +3672,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dlores(void) loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3692,7 +3692,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3735,7 +3735,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dlores(void) loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3755,7 +3755,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3814,7 +3814,7 @@ static void lts_aga_fm1_n0_p6_ihires_dlores(void) loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3834,7 +3834,7 @@ static void lts_aga_fm1_n0_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3872,7 +3872,7 @@ static void lts_aga_fm1_n1_p6_ihires_dlores(void) loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3892,7 +3892,7 @@ static void lts_aga_fm1_n1_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3932,7 +3932,7 @@ static void lts_aga_fm1_dpf0_p6_ihires_dlores(void) loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3952,7 +3952,7 @@ static void lts_aga_fm1_dpf0_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3995,7 +3995,7 @@ static void lts_aga_fm1_dpf1_p6_ihires_dlores(void) loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4015,7 +4015,7 @@ static void lts_aga_fm1_dpf1_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4056,7 +4056,7 @@ static void lts_aga_fm1_ehb0_p6_ihires_dlores(void) loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4076,7 +4076,7 @@ static void lts_aga_fm1_ehb0_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4120,7 +4120,7 @@ static void lts_aga_fm1_ehb1_p6_ihires_dlores(void) loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4140,7 +4140,7 @@ static void lts_aga_fm1_ehb1_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4190,7 +4190,7 @@ static void lts_aga_fm1_ham0_p6_ihires_dlores(void) } loaded_pix = getbpl6_32(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4210,7 +4210,7 @@ static void lts_aga_fm1_ham0_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4266,7 +4266,7 @@ static void lts_aga_fm1_ham1_p6_ihires_dlores(void) } loaded_pix = getbpl6_32(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4286,7 +4286,7 @@ static void lts_aga_fm1_ham1_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4322,7 +4322,7 @@ static void lts_aga_fm1_kehb0_p6_ihires_dlores(void) loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4342,7 +4342,7 @@ static void lts_aga_fm1_kehb0_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4381,7 +4381,7 @@ static void lts_aga_fm1_kehb1_p6_ihires_dlores(void) loaded_pix = getbpl6_32(); loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4401,7 +4401,7 @@ static void lts_aga_fm1_kehb1_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4436,7 +4436,7 @@ static void lts_aga_fm1_n0_p8_ihires_dlores(void) loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4456,7 +4456,7 @@ static void lts_aga_fm1_n0_p8_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4494,7 +4494,7 @@ static void lts_aga_fm1_n1_p8_ihires_dlores(void) loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4514,7 +4514,7 @@ static void lts_aga_fm1_n1_p8_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4554,7 +4554,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dlores(void) loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4574,7 +4574,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4617,7 +4617,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dlores(void) loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4637,7 +4637,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4695,7 +4695,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dlores(void) } loaded_pix = getbpl8_32(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4715,7 +4715,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4771,7 +4771,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dlores(void) } loaded_pix = getbpl8_32(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4791,7 +4791,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4843,7 +4843,7 @@ static void lts_aga_fm1_n0_p2_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4869,7 +4869,7 @@ static void lts_aga_fm1_n0_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4916,7 +4916,7 @@ static void lts_aga_fm1_n1_p2_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4942,7 +4942,7 @@ static void lts_aga_fm1_n1_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4991,7 +4991,7 @@ static void lts_aga_fm1_dpf0_p2_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5017,7 +5017,7 @@ static void lts_aga_fm1_dpf0_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5069,7 +5069,7 @@ static void lts_aga_fm1_dpf1_p2_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5095,7 +5095,7 @@ static void lts_aga_fm1_dpf1_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5163,7 +5163,7 @@ static void lts_aga_fm1_n0_p4_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5189,7 +5189,7 @@ static void lts_aga_fm1_n0_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5236,7 +5236,7 @@ static void lts_aga_fm1_n1_p4_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5262,7 +5262,7 @@ static void lts_aga_fm1_n1_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5311,7 +5311,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5337,7 +5337,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5389,7 +5389,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5415,7 +5415,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5483,7 +5483,7 @@ static void lts_aga_fm1_n0_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5509,7 +5509,7 @@ static void lts_aga_fm1_n0_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5556,7 +5556,7 @@ static void lts_aga_fm1_n1_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5582,7 +5582,7 @@ static void lts_aga_fm1_n1_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5631,7 +5631,7 @@ static void lts_aga_fm1_dpf0_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5657,7 +5657,7 @@ static void lts_aga_fm1_dpf0_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5709,7 +5709,7 @@ static void lts_aga_fm1_dpf1_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5735,7 +5735,7 @@ static void lts_aga_fm1_dpf1_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5785,7 +5785,7 @@ static void lts_aga_fm1_ehb0_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5811,7 +5811,7 @@ static void lts_aga_fm1_ehb0_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5864,7 +5864,7 @@ static void lts_aga_fm1_ehb1_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5890,7 +5890,7 @@ static void lts_aga_fm1_ehb1_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5949,7 +5949,7 @@ static void lts_aga_fm1_ham0_p6_ihires_dlores_spr(void) } loaded_pix = getbpl6_32(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5975,7 +5975,7 @@ static void lts_aga_fm1_ham0_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6040,7 +6040,7 @@ static void lts_aga_fm1_ham1_p6_ihires_dlores_spr(void) } loaded_pix = getbpl6_32(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6066,7 +6066,7 @@ static void lts_aga_fm1_ham1_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6111,7 +6111,7 @@ static void lts_aga_fm1_kehb0_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6137,7 +6137,7 @@ static void lts_aga_fm1_kehb0_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6185,7 +6185,7 @@ static void lts_aga_fm1_kehb1_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6211,7 +6211,7 @@ static void lts_aga_fm1_kehb1_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6255,7 +6255,7 @@ static void lts_aga_fm1_n0_p8_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6281,7 +6281,7 @@ static void lts_aga_fm1_n0_p8_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6328,7 +6328,7 @@ static void lts_aga_fm1_n1_p8_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6354,7 +6354,7 @@ static void lts_aga_fm1_n1_p8_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6403,7 +6403,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6429,7 +6429,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6481,7 +6481,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6507,7 +6507,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6574,7 +6574,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dlores_spr(void) } loaded_pix = getbpl8_32(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6600,7 +6600,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6665,7 +6665,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dlores_spr(void) } loaded_pix = getbpl8_32(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6691,7 +6691,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6736,7 +6736,7 @@ static void lts_aga_fm1_n0_p2_ishres_dlores(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -6756,7 +6756,7 @@ static void lts_aga_fm1_n0_p2_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6796,7 +6796,7 @@ static void lts_aga_fm1_n1_p2_ishres_dlores(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -6816,7 +6816,7 @@ static void lts_aga_fm1_n1_p2_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6858,7 +6858,7 @@ static void lts_aga_fm1_dpf0_p2_ishres_dlores(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -6878,7 +6878,7 @@ static void lts_aga_fm1_dpf0_p2_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6923,7 +6923,7 @@ static void lts_aga_fm1_dpf1_p2_ishres_dlores(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -6943,7 +6943,7 @@ static void lts_aga_fm1_dpf1_p2_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7004,7 +7004,7 @@ static void lts_aga_fm1_n0_p4_ishres_dlores(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7024,7 +7024,7 @@ static void lts_aga_fm1_n0_p4_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7064,7 +7064,7 @@ static void lts_aga_fm1_n1_p4_ishres_dlores(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7084,7 +7084,7 @@ static void lts_aga_fm1_n1_p4_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7126,7 +7126,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dlores(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7146,7 +7146,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7191,7 +7191,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dlores(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7211,7 +7211,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7361,7 +7361,7 @@ static void lts_aga_fm1_n0_p2_ishres_dlores_spr(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7387,7 +7387,7 @@ static void lts_aga_fm1_n0_p2_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7436,7 +7436,7 @@ static void lts_aga_fm1_n1_p2_ishres_dlores_spr(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7462,7 +7462,7 @@ static void lts_aga_fm1_n1_p2_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7513,7 +7513,7 @@ static void lts_aga_fm1_dpf0_p2_ishres_dlores_spr(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7539,7 +7539,7 @@ static void lts_aga_fm1_dpf0_p2_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7593,7 +7593,7 @@ static void lts_aga_fm1_dpf1_p2_ishres_dlores_spr(void) shiftbpl2(); shiftbpl2(); shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7619,7 +7619,7 @@ static void lts_aga_fm1_dpf1_p2_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7689,7 +7689,7 @@ static void lts_aga_fm1_n0_p4_ishres_dlores_spr(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7715,7 +7715,7 @@ static void lts_aga_fm1_n0_p4_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7764,7 +7764,7 @@ static void lts_aga_fm1_n1_p4_ishres_dlores_spr(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7790,7 +7790,7 @@ static void lts_aga_fm1_n1_p4_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7841,7 +7841,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dlores_spr(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7867,7 +7867,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7921,7 +7921,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dlores_spr(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7947,7 +7947,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8114,7 +8114,7 @@ static void lts_aga_fm1_n0_p2_ilores_dhires(void) loaded_pix = getbpl2_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -8143,7 +8143,7 @@ static void lts_aga_fm1_n0_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8228,7 +8228,7 @@ static void lts_aga_fm1_n1_p2_ilores_dhires(void) loaded_pix = getbpl2_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -8257,7 +8257,7 @@ static void lts_aga_fm1_n1_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8330,7 +8330,7 @@ static void lts_aga_fm1_dpf0_p2_ilores_dhires(void) loaded_pix = getbpl2_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -8359,7 +8359,7 @@ static void lts_aga_fm1_dpf0_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8454,7 +8454,7 @@ static void lts_aga_fm1_dpf1_p2_ilores_dhires(void) loaded_pix = getbpl2_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -8483,7 +8483,7 @@ static void lts_aga_fm1_dpf1_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8570,7 +8570,7 @@ static void lts_aga_fm1_n0_p4_ilores_dhires(void) loaded_pix = getbpl4_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -8599,7 +8599,7 @@ static void lts_aga_fm1_n0_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8684,7 +8684,7 @@ static void lts_aga_fm1_n1_p4_ilores_dhires(void) loaded_pix = getbpl4_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -8713,7 +8713,7 @@ static void lts_aga_fm1_n1_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8786,7 +8786,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dhires(void) loaded_pix = getbpl4_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -8815,7 +8815,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8910,7 +8910,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dhires(void) loaded_pix = getbpl4_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -8939,7 +8939,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9026,7 +9026,7 @@ static void lts_aga_fm1_n0_p6_ilores_dhires(void) loaded_pix = getbpl6_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -9055,7 +9055,7 @@ static void lts_aga_fm1_n0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9140,7 +9140,7 @@ static void lts_aga_fm1_n1_p6_ilores_dhires(void) loaded_pix = getbpl6_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -9169,7 +9169,7 @@ static void lts_aga_fm1_n1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9242,7 +9242,7 @@ static void lts_aga_fm1_dpf0_p6_ilores_dhires(void) loaded_pix = getbpl6_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -9271,7 +9271,7 @@ static void lts_aga_fm1_dpf0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9366,7 +9366,7 @@ static void lts_aga_fm1_dpf1_p6_ilores_dhires(void) loaded_pix = getbpl6_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -9395,7 +9395,7 @@ static void lts_aga_fm1_dpf1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9470,7 +9470,7 @@ static void lts_aga_fm1_ehb0_p6_ilores_dhires(void) loaded_pix = getbpl6_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -9499,7 +9499,7 @@ static void lts_aga_fm1_ehb0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9596,7 +9596,7 @@ static void lts_aga_fm1_ehb1_p6_ilores_dhires(void) loaded_pix = getbpl6_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -9625,7 +9625,7 @@ static void lts_aga_fm1_ehb1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9688,7 +9688,7 @@ static void lts_aga_fm1_ham0_p6_ilores_dhires(void) loaded_pix = getbpl6_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -9717,7 +9717,7 @@ static void lts_aga_fm1_ham0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9802,7 +9802,7 @@ static void lts_aga_fm1_ham1_p6_ilores_dhires(void) loaded_pix = getbpl6_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -9831,7 +9831,7 @@ static void lts_aga_fm1_ham1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9896,7 +9896,7 @@ static void lts_aga_fm1_kehb0_p6_ilores_dhires(void) loaded_pix = getbpl6_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -9925,7 +9925,7 @@ static void lts_aga_fm1_kehb0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10012,7 +10012,7 @@ static void lts_aga_fm1_kehb1_p6_ilores_dhires(void) loaded_pix = getbpl6_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -10041,7 +10041,7 @@ static void lts_aga_fm1_kehb1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10104,7 +10104,7 @@ static void lts_aga_fm1_n0_p8_ilores_dhires(void) loaded_pix = getbpl8_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -10133,7 +10133,7 @@ static void lts_aga_fm1_n0_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10218,7 +10218,7 @@ static void lts_aga_fm1_n1_p8_ilores_dhires(void) loaded_pix = getbpl8_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -10247,7 +10247,7 @@ static void lts_aga_fm1_n1_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10320,7 +10320,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dhires(void) loaded_pix = getbpl8_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -10349,7 +10349,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10444,7 +10444,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dhires(void) loaded_pix = getbpl8_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -10473,7 +10473,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10544,7 +10544,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dhires(void) loaded_pix = getbpl8_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -10573,7 +10573,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10658,7 +10658,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dhires(void) loaded_pix = getbpl8_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -10687,7 +10687,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10776,7 +10776,7 @@ static void lts_aga_fm1_n0_p2_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10817,7 +10817,7 @@ static void lts_aga_fm1_n0_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10920,7 +10920,7 @@ static void lts_aga_fm1_n1_p2_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10961,7 +10961,7 @@ static void lts_aga_fm1_n1_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11052,7 +11052,7 @@ static void lts_aga_fm1_dpf0_p2_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11093,7 +11093,7 @@ static void lts_aga_fm1_dpf0_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11206,7 +11206,7 @@ static void lts_aga_fm1_dpf1_p2_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11247,7 +11247,7 @@ static void lts_aga_fm1_dpf1_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11352,7 +11352,7 @@ static void lts_aga_fm1_n0_p4_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11393,7 +11393,7 @@ static void lts_aga_fm1_n0_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11496,7 +11496,7 @@ static void lts_aga_fm1_n1_p4_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11537,7 +11537,7 @@ static void lts_aga_fm1_n1_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11628,7 +11628,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11669,7 +11669,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11782,7 +11782,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11823,7 +11823,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11928,7 +11928,7 @@ static void lts_aga_fm1_n0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11969,7 +11969,7 @@ static void lts_aga_fm1_n0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12072,7 +12072,7 @@ static void lts_aga_fm1_n1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12113,7 +12113,7 @@ static void lts_aga_fm1_n1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12204,7 +12204,7 @@ static void lts_aga_fm1_dpf0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12245,7 +12245,7 @@ static void lts_aga_fm1_dpf0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12358,7 +12358,7 @@ static void lts_aga_fm1_dpf1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12399,7 +12399,7 @@ static void lts_aga_fm1_dpf1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12492,7 +12492,7 @@ static void lts_aga_fm1_ehb0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12533,7 +12533,7 @@ static void lts_aga_fm1_ehb0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12648,7 +12648,7 @@ static void lts_aga_fm1_ehb1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12689,7 +12689,7 @@ static void lts_aga_fm1_ehb1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12770,7 +12770,7 @@ static void lts_aga_fm1_ham0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12811,7 +12811,7 @@ static void lts_aga_fm1_ham0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12914,7 +12914,7 @@ static void lts_aga_fm1_ham1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12955,7 +12955,7 @@ static void lts_aga_fm1_ham1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13038,7 +13038,7 @@ static void lts_aga_fm1_kehb0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13079,7 +13079,7 @@ static void lts_aga_fm1_kehb0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13184,7 +13184,7 @@ static void lts_aga_fm1_kehb1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13225,7 +13225,7 @@ static void lts_aga_fm1_kehb1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13306,7 +13306,7 @@ static void lts_aga_fm1_n0_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13347,7 +13347,7 @@ static void lts_aga_fm1_n0_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13450,7 +13450,7 @@ static void lts_aga_fm1_n1_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13491,7 +13491,7 @@ static void lts_aga_fm1_n1_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13582,7 +13582,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13623,7 +13623,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13736,7 +13736,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13777,7 +13777,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13866,7 +13866,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13907,7 +13907,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14010,7 +14010,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14051,7 +14051,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14110,7 +14110,7 @@ static void lts_aga_fm1_n0_p2_ihires_dhires(void) } loaded_pix = getbpl2_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -14139,7 +14139,7 @@ static void lts_aga_fm1_n0_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14196,7 +14196,7 @@ static void lts_aga_fm1_n1_p2_ihires_dhires(void) } loaded_pix = getbpl2_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -14225,7 +14225,7 @@ static void lts_aga_fm1_n1_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14286,7 +14286,7 @@ static void lts_aga_fm1_dpf0_p2_ihires_dhires(void) } loaded_pix = getbpl2_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -14315,7 +14315,7 @@ static void lts_aga_fm1_dpf0_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14382,7 +14382,7 @@ static void lts_aga_fm1_dpf1_p2_ihires_dhires(void) } loaded_pix = getbpl2_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -14411,7 +14411,7 @@ static void lts_aga_fm1_dpf1_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14486,7 +14486,7 @@ static void lts_aga_fm1_n0_p4_ihires_dhires(void) } loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -14515,7 +14515,7 @@ static void lts_aga_fm1_n0_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14572,7 +14572,7 @@ static void lts_aga_fm1_n1_p4_ihires_dhires(void) } loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -14601,7 +14601,7 @@ static void lts_aga_fm1_n1_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14662,7 +14662,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dhires(void) } loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -14691,7 +14691,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14758,7 +14758,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dhires(void) } loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -14787,7 +14787,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14862,7 +14862,7 @@ static void lts_aga_fm1_n0_p6_ihires_dhires(void) } loaded_pix = getbpl6_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -14891,7 +14891,7 @@ static void lts_aga_fm1_n0_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14948,7 +14948,7 @@ static void lts_aga_fm1_n1_p6_ihires_dhires(void) } loaded_pix = getbpl6_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -14977,7 +14977,7 @@ static void lts_aga_fm1_n1_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15038,7 +15038,7 @@ static void lts_aga_fm1_dpf0_p6_ihires_dhires(void) } loaded_pix = getbpl6_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -15067,7 +15067,7 @@ static void lts_aga_fm1_dpf0_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15134,7 +15134,7 @@ static void lts_aga_fm1_dpf1_p6_ihires_dhires(void) } loaded_pix = getbpl6_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -15163,7 +15163,7 @@ static void lts_aga_fm1_dpf1_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15226,7 +15226,7 @@ static void lts_aga_fm1_ehb0_p6_ihires_dhires(void) } loaded_pix = getbpl6_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -15255,7 +15255,7 @@ static void lts_aga_fm1_ehb0_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15324,7 +15324,7 @@ static void lts_aga_fm1_ehb1_p6_ihires_dhires(void) } loaded_pix = getbpl6_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -15353,7 +15353,7 @@ static void lts_aga_fm1_ehb1_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15404,7 +15404,7 @@ static void lts_aga_fm1_ham0_p6_ihires_dhires(void) } loaded_pix = getbpl6_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -15433,7 +15433,7 @@ static void lts_aga_fm1_ham0_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15490,7 +15490,7 @@ static void lts_aga_fm1_ham1_p6_ihires_dhires(void) } loaded_pix = getbpl6_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -15519,7 +15519,7 @@ static void lts_aga_fm1_ham1_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15572,7 +15572,7 @@ static void lts_aga_fm1_kehb0_p6_ihires_dhires(void) } loaded_pix = getbpl6_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -15601,7 +15601,7 @@ static void lts_aga_fm1_kehb0_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15660,7 +15660,7 @@ static void lts_aga_fm1_kehb1_p6_ihires_dhires(void) } loaded_pix = getbpl6_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -15689,7 +15689,7 @@ static void lts_aga_fm1_kehb1_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15740,7 +15740,7 @@ static void lts_aga_fm1_n0_p8_ihires_dhires(void) } loaded_pix = getbpl8_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -15769,7 +15769,7 @@ static void lts_aga_fm1_n0_p8_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15826,7 +15826,7 @@ static void lts_aga_fm1_n1_p8_ihires_dhires(void) } loaded_pix = getbpl8_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -15855,7 +15855,7 @@ static void lts_aga_fm1_n1_p8_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15916,7 +15916,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dhires(void) } loaded_pix = getbpl8_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -15945,7 +15945,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16012,7 +16012,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dhires(void) } loaded_pix = getbpl8_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -16041,7 +16041,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16100,7 +16100,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dhires(void) } loaded_pix = getbpl8_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -16129,7 +16129,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16186,7 +16186,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dhires(void) } loaded_pix = getbpl8_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -16215,7 +16215,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16292,7 +16292,7 @@ static void lts_aga_fm1_n0_p2_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16333,7 +16333,7 @@ static void lts_aga_fm1_n0_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16408,7 +16408,7 @@ static void lts_aga_fm1_n1_p2_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16449,7 +16449,7 @@ static void lts_aga_fm1_n1_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16528,7 +16528,7 @@ static void lts_aga_fm1_dpf0_p2_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16569,7 +16569,7 @@ static void lts_aga_fm1_dpf0_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16654,7 +16654,7 @@ static void lts_aga_fm1_dpf1_p2_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16695,7 +16695,7 @@ static void lts_aga_fm1_dpf1_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16788,7 +16788,7 @@ static void lts_aga_fm1_n0_p4_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16829,7 +16829,7 @@ static void lts_aga_fm1_n0_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16904,7 +16904,7 @@ static void lts_aga_fm1_n1_p4_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16945,7 +16945,7 @@ static void lts_aga_fm1_n1_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17024,7 +17024,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17065,7 +17065,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17150,7 +17150,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17191,7 +17191,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17284,7 +17284,7 @@ static void lts_aga_fm1_n0_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17325,7 +17325,7 @@ static void lts_aga_fm1_n0_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17400,7 +17400,7 @@ static void lts_aga_fm1_n1_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17441,7 +17441,7 @@ static void lts_aga_fm1_n1_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17520,7 +17520,7 @@ static void lts_aga_fm1_dpf0_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17561,7 +17561,7 @@ static void lts_aga_fm1_dpf0_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17646,7 +17646,7 @@ static void lts_aga_fm1_dpf1_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17687,7 +17687,7 @@ static void lts_aga_fm1_dpf1_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17768,7 +17768,7 @@ static void lts_aga_fm1_ehb0_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17809,7 +17809,7 @@ static void lts_aga_fm1_ehb0_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17896,7 +17896,7 @@ static void lts_aga_fm1_ehb1_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17937,7 +17937,7 @@ static void lts_aga_fm1_ehb1_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18006,7 +18006,7 @@ static void lts_aga_fm1_ham0_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18047,7 +18047,7 @@ static void lts_aga_fm1_ham0_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18122,7 +18122,7 @@ static void lts_aga_fm1_ham1_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18163,7 +18163,7 @@ static void lts_aga_fm1_ham1_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18234,7 +18234,7 @@ static void lts_aga_fm1_kehb0_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18275,7 +18275,7 @@ static void lts_aga_fm1_kehb0_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18352,7 +18352,7 @@ static void lts_aga_fm1_kehb1_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18393,7 +18393,7 @@ static void lts_aga_fm1_kehb1_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18462,7 +18462,7 @@ static void lts_aga_fm1_n0_p8_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18503,7 +18503,7 @@ static void lts_aga_fm1_n0_p8_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18578,7 +18578,7 @@ static void lts_aga_fm1_n1_p8_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18619,7 +18619,7 @@ static void lts_aga_fm1_n1_p8_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18698,7 +18698,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18739,7 +18739,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18824,7 +18824,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18865,7 +18865,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18942,7 +18942,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18983,7 +18983,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19058,7 +19058,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19099,7 +19099,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19160,7 +19160,7 @@ static void lts_aga_fm1_n0_p2_ishres_dhires(void) loaded_pix = getbpl2_32(); loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -19189,7 +19189,7 @@ static void lts_aga_fm1_n0_p2_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19248,7 +19248,7 @@ static void lts_aga_fm1_n1_p2_ishres_dhires(void) loaded_pix = getbpl2_32(); loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -19277,7 +19277,7 @@ static void lts_aga_fm1_n1_p2_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19340,7 +19340,7 @@ static void lts_aga_fm1_dpf0_p2_ishres_dhires(void) loaded_pix = getbpl2_32(); loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -19369,7 +19369,7 @@ static void lts_aga_fm1_dpf0_p2_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19438,7 +19438,7 @@ static void lts_aga_fm1_dpf1_p2_ishres_dhires(void) loaded_pix = getbpl2_32(); loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -19467,7 +19467,7 @@ static void lts_aga_fm1_dpf1_p2_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19544,7 +19544,7 @@ static void lts_aga_fm1_n0_p4_ishres_dhires(void) loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -19573,7 +19573,7 @@ static void lts_aga_fm1_n0_p4_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19632,7 +19632,7 @@ static void lts_aga_fm1_n1_p4_ishres_dhires(void) loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -19661,7 +19661,7 @@ static void lts_aga_fm1_n1_p4_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19724,7 +19724,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dhires(void) loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -19753,7 +19753,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19822,7 +19822,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dhires(void) loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -19851,7 +19851,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20026,7 +20026,7 @@ static void lts_aga_fm1_n0_p2_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20067,7 +20067,7 @@ static void lts_aga_fm1_n0_p2_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20144,7 +20144,7 @@ static void lts_aga_fm1_n1_p2_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20185,7 +20185,7 @@ static void lts_aga_fm1_n1_p2_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20266,7 +20266,7 @@ static void lts_aga_fm1_dpf0_p2_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20307,7 +20307,7 @@ static void lts_aga_fm1_dpf0_p2_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20394,7 +20394,7 @@ static void lts_aga_fm1_dpf1_p2_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20435,7 +20435,7 @@ static void lts_aga_fm1_dpf1_p2_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20530,7 +20530,7 @@ static void lts_aga_fm1_n0_p4_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20571,7 +20571,7 @@ static void lts_aga_fm1_n0_p4_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20648,7 +20648,7 @@ static void lts_aga_fm1_n1_p4_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20689,7 +20689,7 @@ static void lts_aga_fm1_n1_p4_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20770,7 +20770,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20811,7 +20811,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20898,7 +20898,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20939,7 +20939,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21152,7 +21152,7 @@ static void lts_aga_fm1_n0_p2_ilores_dshres(void) loaded_pix = getbpl2_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -21199,7 +21199,7 @@ static void lts_aga_fm1_n0_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21352,7 +21352,7 @@ static void lts_aga_fm1_n1_p2_ilores_dshres(void) loaded_pix = getbpl2_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -21399,7 +21399,7 @@ static void lts_aga_fm1_n1_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21528,7 +21528,7 @@ static void lts_aga_fm1_dpf0_p2_ilores_dshres(void) loaded_pix = getbpl2_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -21575,7 +21575,7 @@ static void lts_aga_fm1_dpf0_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21748,7 +21748,7 @@ static void lts_aga_fm1_dpf1_p2_ilores_dshres(void) loaded_pix = getbpl2_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -21795,7 +21795,7 @@ static void lts_aga_fm1_dpf1_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21928,7 +21928,7 @@ static void lts_aga_fm1_n0_p4_ilores_dshres(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -21975,7 +21975,7 @@ static void lts_aga_fm1_n0_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22128,7 +22128,7 @@ static void lts_aga_fm1_n1_p4_ilores_dshres(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -22175,7 +22175,7 @@ static void lts_aga_fm1_n1_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22304,7 +22304,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dshres(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -22351,7 +22351,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22524,7 +22524,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dshres(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -22571,7 +22571,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22704,7 +22704,7 @@ static void lts_aga_fm1_n0_p6_ilores_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -22751,7 +22751,7 @@ static void lts_aga_fm1_n0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22904,7 +22904,7 @@ static void lts_aga_fm1_n1_p6_ilores_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -22951,7 +22951,7 @@ static void lts_aga_fm1_n1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23080,7 +23080,7 @@ static void lts_aga_fm1_dpf0_p6_ilores_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -23127,7 +23127,7 @@ static void lts_aga_fm1_dpf0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23300,7 +23300,7 @@ static void lts_aga_fm1_dpf1_p6_ilores_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -23347,7 +23347,7 @@ static void lts_aga_fm1_dpf1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23480,7 +23480,7 @@ static void lts_aga_fm1_ehb0_p6_ilores_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -23527,7 +23527,7 @@ static void lts_aga_fm1_ehb0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23704,7 +23704,7 @@ static void lts_aga_fm1_ehb1_p6_ilores_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -23751,7 +23751,7 @@ static void lts_aga_fm1_ehb1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23860,7 +23860,7 @@ static void lts_aga_fm1_ham0_p6_ilores_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -23907,7 +23907,7 @@ static void lts_aga_fm1_ham0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24060,7 +24060,7 @@ static void lts_aga_fm1_ham1_p6_ilores_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -24107,7 +24107,7 @@ static void lts_aga_fm1_ham1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24220,7 +24220,7 @@ static void lts_aga_fm1_kehb0_p6_ilores_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -24267,7 +24267,7 @@ static void lts_aga_fm1_kehb0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24424,7 +24424,7 @@ static void lts_aga_fm1_kehb1_p6_ilores_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -24471,7 +24471,7 @@ static void lts_aga_fm1_kehb1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24580,7 +24580,7 @@ static void lts_aga_fm1_n0_p8_ilores_dshres(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -24627,7 +24627,7 @@ static void lts_aga_fm1_n0_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24780,7 +24780,7 @@ static void lts_aga_fm1_n1_p8_ilores_dshres(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -24827,7 +24827,7 @@ static void lts_aga_fm1_n1_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24956,7 +24956,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dshres(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -25003,7 +25003,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25176,7 +25176,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dshres(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -25223,7 +25223,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25340,7 +25340,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dshres(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -25387,7 +25387,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25540,7 +25540,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dshres(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -25587,7 +25587,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25740,7 +25740,7 @@ static void lts_aga_fm1_n0_p2_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25811,7 +25811,7 @@ static void lts_aga_fm1_n0_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26000,7 +26000,7 @@ static void lts_aga_fm1_n1_p2_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26071,7 +26071,7 @@ static void lts_aga_fm1_n1_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26236,7 +26236,7 @@ static void lts_aga_fm1_dpf0_p2_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26307,7 +26307,7 @@ static void lts_aga_fm1_dpf0_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26516,7 +26516,7 @@ static void lts_aga_fm1_dpf1_p2_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26587,7 +26587,7 @@ static void lts_aga_fm1_dpf1_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26756,7 +26756,7 @@ static void lts_aga_fm1_n0_p4_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26827,7 +26827,7 @@ static void lts_aga_fm1_n0_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27016,7 +27016,7 @@ static void lts_aga_fm1_n1_p4_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -27087,7 +27087,7 @@ static void lts_aga_fm1_n1_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27252,7 +27252,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -27323,7 +27323,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27532,7 +27532,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -27603,7 +27603,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27772,7 +27772,7 @@ static void lts_aga_fm1_n0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -27843,7 +27843,7 @@ static void lts_aga_fm1_n0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28032,7 +28032,7 @@ static void lts_aga_fm1_n1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -28103,7 +28103,7 @@ static void lts_aga_fm1_n1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28268,7 +28268,7 @@ static void lts_aga_fm1_dpf0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -28339,7 +28339,7 @@ static void lts_aga_fm1_dpf0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28548,7 +28548,7 @@ static void lts_aga_fm1_dpf1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -28619,7 +28619,7 @@ static void lts_aga_fm1_dpf1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28788,7 +28788,7 @@ static void lts_aga_fm1_ehb0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -28859,7 +28859,7 @@ static void lts_aga_fm1_ehb0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29072,7 +29072,7 @@ static void lts_aga_fm1_ehb1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -29143,7 +29143,7 @@ static void lts_aga_fm1_ehb1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29288,7 +29288,7 @@ static void lts_aga_fm1_ham0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -29359,7 +29359,7 @@ static void lts_aga_fm1_ham0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29548,7 +29548,7 @@ static void lts_aga_fm1_ham1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -29619,7 +29619,7 @@ static void lts_aga_fm1_ham1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29768,7 +29768,7 @@ static void lts_aga_fm1_kehb0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -29839,7 +29839,7 @@ static void lts_aga_fm1_kehb0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -30032,7 +30032,7 @@ static void lts_aga_fm1_kehb1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -30103,7 +30103,7 @@ static void lts_aga_fm1_kehb1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -30248,7 +30248,7 @@ static void lts_aga_fm1_n0_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -30319,7 +30319,7 @@ static void lts_aga_fm1_n0_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -30508,7 +30508,7 @@ static void lts_aga_fm1_n1_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -30579,7 +30579,7 @@ static void lts_aga_fm1_n1_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -30744,7 +30744,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -30815,7 +30815,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -31024,7 +31024,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -31095,7 +31095,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -31248,7 +31248,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -31319,7 +31319,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -31508,7 +31508,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -31579,7 +31579,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -31696,7 +31696,7 @@ static void lts_aga_fm1_n0_p2_ihires_dshres(void) loaded_pix = getbpl2_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -31743,7 +31743,7 @@ static void lts_aga_fm1_n0_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -31896,7 +31896,7 @@ static void lts_aga_fm1_n1_p2_ihires_dshres(void) loaded_pix = getbpl2_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -31943,7 +31943,7 @@ static void lts_aga_fm1_n1_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -32072,7 +32072,7 @@ static void lts_aga_fm1_dpf0_p2_ihires_dshres(void) loaded_pix = getbpl2_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -32119,7 +32119,7 @@ static void lts_aga_fm1_dpf0_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -32292,7 +32292,7 @@ static void lts_aga_fm1_dpf1_p2_ihires_dshres(void) loaded_pix = getbpl2_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -32339,7 +32339,7 @@ static void lts_aga_fm1_dpf1_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -32472,7 +32472,7 @@ static void lts_aga_fm1_n0_p4_ihires_dshres(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -32519,7 +32519,7 @@ static void lts_aga_fm1_n0_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -32672,7 +32672,7 @@ static void lts_aga_fm1_n1_p4_ihires_dshres(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -32719,7 +32719,7 @@ static void lts_aga_fm1_n1_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -32848,7 +32848,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dshres(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -32895,7 +32895,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -33068,7 +33068,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dshres(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -33115,7 +33115,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -33248,7 +33248,7 @@ static void lts_aga_fm1_n0_p6_ihires_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -33295,7 +33295,7 @@ static void lts_aga_fm1_n0_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -33448,7 +33448,7 @@ static void lts_aga_fm1_n1_p6_ihires_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -33495,7 +33495,7 @@ static void lts_aga_fm1_n1_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -33624,7 +33624,7 @@ static void lts_aga_fm1_dpf0_p6_ihires_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -33671,7 +33671,7 @@ static void lts_aga_fm1_dpf0_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -33844,7 +33844,7 @@ static void lts_aga_fm1_dpf1_p6_ihires_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -33891,7 +33891,7 @@ static void lts_aga_fm1_dpf1_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -34024,7 +34024,7 @@ static void lts_aga_fm1_ehb0_p6_ihires_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -34071,7 +34071,7 @@ static void lts_aga_fm1_ehb0_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -34248,7 +34248,7 @@ static void lts_aga_fm1_ehb1_p6_ihires_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -34295,7 +34295,7 @@ static void lts_aga_fm1_ehb1_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -34404,7 +34404,7 @@ static void lts_aga_fm1_ham0_p6_ihires_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -34451,7 +34451,7 @@ static void lts_aga_fm1_ham0_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -34604,7 +34604,7 @@ static void lts_aga_fm1_ham1_p6_ihires_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -34651,7 +34651,7 @@ static void lts_aga_fm1_ham1_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -34764,7 +34764,7 @@ static void lts_aga_fm1_kehb0_p6_ihires_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -34811,7 +34811,7 @@ static void lts_aga_fm1_kehb0_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -34968,7 +34968,7 @@ static void lts_aga_fm1_kehb1_p6_ihires_dshres(void) loaded_pix = getbpl6_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -35015,7 +35015,7 @@ static void lts_aga_fm1_kehb1_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -35124,7 +35124,7 @@ static void lts_aga_fm1_n0_p8_ihires_dshres(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -35171,7 +35171,7 @@ static void lts_aga_fm1_n0_p8_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -35324,7 +35324,7 @@ static void lts_aga_fm1_n1_p8_ihires_dshres(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -35371,7 +35371,7 @@ static void lts_aga_fm1_n1_p8_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -35500,7 +35500,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dshres(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -35547,7 +35547,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -35720,7 +35720,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dshres(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -35767,7 +35767,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -35884,7 +35884,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dshres(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -35931,7 +35931,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -36084,7 +36084,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dshres(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -36131,7 +36131,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -36284,7 +36284,7 @@ static void lts_aga_fm1_n0_p2_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -36355,7 +36355,7 @@ static void lts_aga_fm1_n0_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -36544,7 +36544,7 @@ static void lts_aga_fm1_n1_p2_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -36615,7 +36615,7 @@ static void lts_aga_fm1_n1_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -36780,7 +36780,7 @@ static void lts_aga_fm1_dpf0_p2_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -36851,7 +36851,7 @@ static void lts_aga_fm1_dpf0_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -37060,7 +37060,7 @@ static void lts_aga_fm1_dpf1_p2_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -37131,7 +37131,7 @@ static void lts_aga_fm1_dpf1_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -37300,7 +37300,7 @@ static void lts_aga_fm1_n0_p4_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -37371,7 +37371,7 @@ static void lts_aga_fm1_n0_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -37560,7 +37560,7 @@ static void lts_aga_fm1_n1_p4_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -37631,7 +37631,7 @@ static void lts_aga_fm1_n1_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -37796,7 +37796,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -37867,7 +37867,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -38076,7 +38076,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -38147,7 +38147,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -38316,7 +38316,7 @@ static void lts_aga_fm1_n0_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -38387,7 +38387,7 @@ static void lts_aga_fm1_n0_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -38576,7 +38576,7 @@ static void lts_aga_fm1_n1_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -38647,7 +38647,7 @@ static void lts_aga_fm1_n1_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -38812,7 +38812,7 @@ static void lts_aga_fm1_dpf0_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -38883,7 +38883,7 @@ static void lts_aga_fm1_dpf0_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -39092,7 +39092,7 @@ static void lts_aga_fm1_dpf1_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -39163,7 +39163,7 @@ static void lts_aga_fm1_dpf1_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -39332,7 +39332,7 @@ static void lts_aga_fm1_ehb0_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -39403,7 +39403,7 @@ static void lts_aga_fm1_ehb0_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -39616,7 +39616,7 @@ static void lts_aga_fm1_ehb1_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -39687,7 +39687,7 @@ static void lts_aga_fm1_ehb1_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -39832,7 +39832,7 @@ static void lts_aga_fm1_ham0_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -39903,7 +39903,7 @@ static void lts_aga_fm1_ham0_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -40092,7 +40092,7 @@ static void lts_aga_fm1_ham1_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -40163,7 +40163,7 @@ static void lts_aga_fm1_ham1_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -40312,7 +40312,7 @@ static void lts_aga_fm1_kehb0_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -40383,7 +40383,7 @@ static void lts_aga_fm1_kehb0_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -40576,7 +40576,7 @@ static void lts_aga_fm1_kehb1_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -40647,7 +40647,7 @@ static void lts_aga_fm1_kehb1_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -40792,7 +40792,7 @@ static void lts_aga_fm1_n0_p8_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -40863,7 +40863,7 @@ static void lts_aga_fm1_n0_p8_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -41052,7 +41052,7 @@ static void lts_aga_fm1_n1_p8_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -41123,7 +41123,7 @@ static void lts_aga_fm1_n1_p8_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -41288,7 +41288,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -41359,7 +41359,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -41568,7 +41568,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -41639,7 +41639,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -41792,7 +41792,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -41863,7 +41863,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -42052,7 +42052,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -42123,7 +42123,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -42216,7 +42216,7 @@ static void lts_aga_fm1_n0_p2_ishres_dshres(void) } loaded_pix = getbpl2_32(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -42263,7 +42263,7 @@ static void lts_aga_fm1_n0_p2_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -42360,7 +42360,7 @@ static void lts_aga_fm1_n1_p2_ishres_dshres(void) } loaded_pix = getbpl2_32(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -42407,7 +42407,7 @@ static void lts_aga_fm1_n1_p2_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -42512,7 +42512,7 @@ static void lts_aga_fm1_dpf0_p2_ishres_dshres(void) } loaded_pix = getbpl2_32(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -42559,7 +42559,7 @@ static void lts_aga_fm1_dpf0_p2_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -42676,7 +42676,7 @@ static void lts_aga_fm1_dpf1_p2_ishres_dshres(void) } loaded_pix = getbpl2_32(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -42723,7 +42723,7 @@ static void lts_aga_fm1_dpf1_p2_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -42832,7 +42832,7 @@ static void lts_aga_fm1_n0_p4_ishres_dshres(void) } loaded_pix = getbpl4_32(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -42879,7 +42879,7 @@ static void lts_aga_fm1_n0_p4_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -42976,7 +42976,7 @@ static void lts_aga_fm1_n1_p4_ishres_dshres(void) } loaded_pix = getbpl4_32(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -43023,7 +43023,7 @@ static void lts_aga_fm1_n1_p4_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -43128,7 +43128,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dshres(void) } loaded_pix = getbpl4_32(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -43175,7 +43175,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -43292,7 +43292,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dshres(void) } loaded_pix = getbpl4_32(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -43339,7 +43339,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -43564,7 +43564,7 @@ static void lts_aga_fm1_n0_p2_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -43635,7 +43635,7 @@ static void lts_aga_fm1_n0_p2_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -43768,7 +43768,7 @@ static void lts_aga_fm1_n1_p2_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -43839,7 +43839,7 @@ static void lts_aga_fm1_n1_p2_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -43980,7 +43980,7 @@ static void lts_aga_fm1_dpf0_p2_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -44051,7 +44051,7 @@ static void lts_aga_fm1_dpf0_p2_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -44204,7 +44204,7 @@ static void lts_aga_fm1_dpf1_p2_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -44275,7 +44275,7 @@ static void lts_aga_fm1_dpf1_p2_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -44420,7 +44420,7 @@ static void lts_aga_fm1_n0_p4_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -44491,7 +44491,7 @@ static void lts_aga_fm1_n0_p4_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -44624,7 +44624,7 @@ static void lts_aga_fm1_n1_p4_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -44695,7 +44695,7 @@ static void lts_aga_fm1_n1_p4_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -44836,7 +44836,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -44907,7 +44907,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -45060,7 +45060,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -45131,7 +45131,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } diff --git a/linetoscr_aga_fm1_genlock.cpp b/linetoscr_aga_fm1_genlock.cpp index 66fb1d8f..b029a195 100644 --- a/linetoscr_aga_fm1_genlock.cpp +++ b/linetoscr_aga_fm1_genlock.cpp @@ -36,7 +36,7 @@ static void lts_aga_fm1_n0_p4_ilores_dlores_genlock(void) } loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -58,7 +58,7 @@ static void lts_aga_fm1_n0_p4_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -98,7 +98,7 @@ static void lts_aga_fm1_n1_p4_ilores_dlores_genlock(void) } loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -120,7 +120,7 @@ static void lts_aga_fm1_n1_p4_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -162,7 +162,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dlores_genlock(void) } loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -184,7 +184,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -229,7 +229,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dlores_genlock(void) } loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -251,7 +251,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -312,7 +312,7 @@ static void lts_aga_fm1_n0_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -334,7 +334,7 @@ static void lts_aga_fm1_n0_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -374,7 +374,7 @@ static void lts_aga_fm1_n1_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -396,7 +396,7 @@ static void lts_aga_fm1_n1_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -438,7 +438,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -460,7 +460,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -505,7 +505,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -527,7 +527,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -572,7 +572,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -594,7 +594,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -634,7 +634,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -656,7 +656,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -710,7 +710,7 @@ static void lts_aga_fm1_n0_p4_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -740,7 +740,7 @@ static void lts_aga_fm1_n0_p4_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -789,7 +789,7 @@ static void lts_aga_fm1_n1_p4_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -819,7 +819,7 @@ static void lts_aga_fm1_n1_p4_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -870,7 +870,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -900,7 +900,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -954,7 +954,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -984,7 +984,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1054,7 +1054,7 @@ static void lts_aga_fm1_n0_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1084,7 +1084,7 @@ static void lts_aga_fm1_n0_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1133,7 +1133,7 @@ static void lts_aga_fm1_n1_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1163,7 +1163,7 @@ static void lts_aga_fm1_n1_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1214,7 +1214,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1244,7 +1244,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1298,7 +1298,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1328,7 +1328,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1382,7 +1382,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1412,7 +1412,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1461,7 +1461,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1491,7 +1491,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1537,7 +1537,7 @@ static void lts_aga_fm1_n0_p4_ihires_dlores_genlock(void) loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1559,7 +1559,7 @@ static void lts_aga_fm1_n0_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1600,7 +1600,7 @@ static void lts_aga_fm1_n1_p4_ihires_dlores_genlock(void) loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1622,7 +1622,7 @@ static void lts_aga_fm1_n1_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1665,7 +1665,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dlores_genlock(void) loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1687,7 +1687,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1733,7 +1733,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dlores_genlock(void) loaded_pix = getbpl4_32(); loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1755,7 +1755,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1817,7 +1817,7 @@ static void lts_aga_fm1_n0_p8_ihires_dlores_genlock(void) loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1839,7 +1839,7 @@ static void lts_aga_fm1_n0_p8_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1880,7 +1880,7 @@ static void lts_aga_fm1_n1_p8_ihires_dlores_genlock(void) loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1902,7 +1902,7 @@ static void lts_aga_fm1_n1_p8_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1945,7 +1945,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dlores_genlock(void) loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1967,7 +1967,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2013,7 +2013,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dlores_genlock(void) loaded_pix = getbpl8_32(); loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -2035,7 +2035,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2097,7 +2097,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dlores_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -2119,7 +2119,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2179,7 +2179,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dlores_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -2201,7 +2201,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2256,7 +2256,7 @@ static void lts_aga_fm1_n0_p4_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2286,7 +2286,7 @@ static void lts_aga_fm1_n0_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2336,7 +2336,7 @@ static void lts_aga_fm1_n1_p4_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2366,7 +2366,7 @@ static void lts_aga_fm1_n1_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2418,7 +2418,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2448,7 +2448,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2503,7 +2503,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2533,7 +2533,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2604,7 +2604,7 @@ static void lts_aga_fm1_n0_p8_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2634,7 +2634,7 @@ static void lts_aga_fm1_n0_p8_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2684,7 +2684,7 @@ static void lts_aga_fm1_n1_p8_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2714,7 +2714,7 @@ static void lts_aga_fm1_n1_p8_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2766,7 +2766,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2796,7 +2796,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2851,7 +2851,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl8(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2881,7 +2881,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2952,7 +2952,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dlores_spr_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2982,7 +2982,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3051,7 +3051,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dlores_spr_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3081,7 +3081,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3129,7 +3129,7 @@ static void lts_aga_fm1_n0_p4_ishres_dlores_genlock(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3151,7 +3151,7 @@ static void lts_aga_fm1_n0_p4_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3194,7 +3194,7 @@ static void lts_aga_fm1_n1_p4_ishres_dlores_genlock(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3216,7 +3216,7 @@ static void lts_aga_fm1_n1_p4_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3261,7 +3261,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dlores_genlock(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3283,7 +3283,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3331,7 +3331,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dlores_genlock(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3353,7 +3353,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3466,7 +3466,7 @@ static void lts_aga_fm1_n0_p4_ishres_dlores_spr_genlock(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3496,7 +3496,7 @@ static void lts_aga_fm1_n0_p4_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3548,7 +3548,7 @@ static void lts_aga_fm1_n1_p4_ishres_dlores_spr_genlock(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3578,7 +3578,7 @@ static void lts_aga_fm1_n1_p4_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3632,7 +3632,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dlores_spr_genlock(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3662,7 +3662,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3719,7 +3719,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dlores_spr_genlock(void) shiftbpl4(); shiftbpl4(); shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3749,7 +3749,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3882,7 +3882,7 @@ static void lts_aga_fm1_n0_p4_ilores_dhires_genlock(void) loaded_pix = getbpl4_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -3915,7 +3915,7 @@ static void lts_aga_fm1_n0_p4_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4006,7 +4006,7 @@ static void lts_aga_fm1_n1_p4_ilores_dhires_genlock(void) loaded_pix = getbpl4_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -4039,7 +4039,7 @@ static void lts_aga_fm1_n1_p4_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4118,7 +4118,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dhires_genlock(void) loaded_pix = getbpl4_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -4151,7 +4151,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4252,7 +4252,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dhires_genlock(void) loaded_pix = getbpl4_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -4285,7 +4285,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4378,7 +4378,7 @@ static void lts_aga_fm1_n0_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -4411,7 +4411,7 @@ static void lts_aga_fm1_n0_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4502,7 +4502,7 @@ static void lts_aga_fm1_n1_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -4535,7 +4535,7 @@ static void lts_aga_fm1_n1_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4614,7 +4614,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -4647,7 +4647,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4748,7 +4748,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -4781,7 +4781,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4858,7 +4858,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -4891,7 +4891,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4982,7 +4982,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5015,7 +5015,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5110,7 +5110,7 @@ static void lts_aga_fm1_n0_p4_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5159,7 +5159,7 @@ static void lts_aga_fm1_n0_p4_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5268,7 +5268,7 @@ static void lts_aga_fm1_n1_p4_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5317,7 +5317,7 @@ static void lts_aga_fm1_n1_p4_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5414,7 +5414,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5463,7 +5463,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5582,7 +5582,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5631,7 +5631,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5742,7 +5742,7 @@ static void lts_aga_fm1_n0_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5791,7 +5791,7 @@ static void lts_aga_fm1_n0_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5900,7 +5900,7 @@ static void lts_aga_fm1_n1_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5949,7 +5949,7 @@ static void lts_aga_fm1_n1_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6046,7 +6046,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6095,7 +6095,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6214,7 +6214,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6263,7 +6263,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6358,7 +6358,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6407,7 +6407,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6516,7 +6516,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6565,7 +6565,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6630,7 +6630,7 @@ static void lts_aga_fm1_n0_p4_ihires_dhires_genlock(void) } loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -6663,7 +6663,7 @@ static void lts_aga_fm1_n0_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6726,7 +6726,7 @@ static void lts_aga_fm1_n1_p4_ihires_dhires_genlock(void) } loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -6759,7 +6759,7 @@ static void lts_aga_fm1_n1_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6826,7 +6826,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dhires_genlock(void) } loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -6859,7 +6859,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6932,7 +6932,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dhires_genlock(void) } loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -6965,7 +6965,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7046,7 +7046,7 @@ static void lts_aga_fm1_n0_p8_ihires_dhires_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -7079,7 +7079,7 @@ static void lts_aga_fm1_n0_p8_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7142,7 +7142,7 @@ static void lts_aga_fm1_n1_p8_ihires_dhires_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -7175,7 +7175,7 @@ static void lts_aga_fm1_n1_p8_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7242,7 +7242,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dhires_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -7275,7 +7275,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7348,7 +7348,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dhires_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -7381,7 +7381,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7446,7 +7446,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dhires_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -7479,7 +7479,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7542,7 +7542,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dhires_genlock(void) } loaded_pix = getbpl8_32(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -7575,7 +7575,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7658,7 +7658,7 @@ static void lts_aga_fm1_n0_p4_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7707,7 +7707,7 @@ static void lts_aga_fm1_n0_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7788,7 +7788,7 @@ static void lts_aga_fm1_n1_p4_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7837,7 +7837,7 @@ static void lts_aga_fm1_n1_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7922,7 +7922,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7971,7 +7971,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8062,7 +8062,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8111,7 +8111,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8210,7 +8210,7 @@ static void lts_aga_fm1_n0_p8_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8259,7 +8259,7 @@ static void lts_aga_fm1_n0_p8_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8340,7 +8340,7 @@ static void lts_aga_fm1_n1_p8_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8389,7 +8389,7 @@ static void lts_aga_fm1_n1_p8_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8474,7 +8474,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8523,7 +8523,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8614,7 +8614,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8663,7 +8663,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8746,7 +8746,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8795,7 +8795,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8876,7 +8876,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8925,7 +8925,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8992,7 +8992,7 @@ static void lts_aga_fm1_n0_p4_ishres_dhires_genlock(void) loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -9025,7 +9025,7 @@ static void lts_aga_fm1_n0_p4_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9090,7 +9090,7 @@ static void lts_aga_fm1_n1_p4_ishres_dhires_genlock(void) loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -9123,7 +9123,7 @@ static void lts_aga_fm1_n1_p4_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9192,7 +9192,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dhires_genlock(void) loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -9225,7 +9225,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9300,7 +9300,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dhires_genlock(void) loaded_pix = getbpl4_32(); loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -9333,7 +9333,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9474,7 +9474,7 @@ static void lts_aga_fm1_n0_p4_ishres_dhires_spr_genlock(void) } loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9523,7 +9523,7 @@ static void lts_aga_fm1_n0_p4_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9606,7 +9606,7 @@ static void lts_aga_fm1_n1_p4_ishres_dhires_spr_genlock(void) } loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9655,7 +9655,7 @@ static void lts_aga_fm1_n1_p4_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9742,7 +9742,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dhires_spr_genlock(void) } loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9791,7 +9791,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9884,7 +9884,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dhires_spr_genlock(void) } loaded_pixs[2] = loaded_pix; shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9933,7 +9933,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10118,7 +10118,7 @@ static void lts_aga_fm1_n0_p4_ilores_dshres_genlock(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -10173,7 +10173,7 @@ static void lts_aga_fm1_n0_p4_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10338,7 +10338,7 @@ static void lts_aga_fm1_n1_p4_ilores_dshres_genlock(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -10393,7 +10393,7 @@ static void lts_aga_fm1_n1_p4_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10534,7 +10534,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dshres_genlock(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -10589,7 +10589,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10774,7 +10774,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dshres_genlock(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -10829,7 +10829,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10974,7 +10974,7 @@ static void lts_aga_fm1_n0_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -11029,7 +11029,7 @@ static void lts_aga_fm1_n0_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11194,7 +11194,7 @@ static void lts_aga_fm1_n1_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -11249,7 +11249,7 @@ static void lts_aga_fm1_n1_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11390,7 +11390,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -11445,7 +11445,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11630,7 +11630,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -11685,7 +11685,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11814,7 +11814,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -11869,7 +11869,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12034,7 +12034,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -12089,7 +12089,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12254,7 +12254,7 @@ static void lts_aga_fm1_n0_p4_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12341,7 +12341,7 @@ static void lts_aga_fm1_n0_p4_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12542,7 +12542,7 @@ static void lts_aga_fm1_n1_p4_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12629,7 +12629,7 @@ static void lts_aga_fm1_n1_p4_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12806,7 +12806,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12893,7 +12893,7 @@ static void lts_aga_fm1_dpf0_p4_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13114,7 +13114,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13201,7 +13201,7 @@ static void lts_aga_fm1_dpf1_p4_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13382,7 +13382,7 @@ static void lts_aga_fm1_n0_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13469,7 +13469,7 @@ static void lts_aga_fm1_n0_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13670,7 +13670,7 @@ static void lts_aga_fm1_n1_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13757,7 +13757,7 @@ static void lts_aga_fm1_n1_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13934,7 +13934,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14021,7 +14021,7 @@ static void lts_aga_fm1_dpf0_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14242,7 +14242,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14329,7 +14329,7 @@ static void lts_aga_fm1_dpf1_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14494,7 +14494,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14581,7 +14581,7 @@ static void lts_aga_fm1_ham0_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14782,7 +14782,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14869,7 +14869,7 @@ static void lts_aga_fm1_ham1_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14998,7 +14998,7 @@ static void lts_aga_fm1_n0_p4_ihires_dshres_genlock(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -15053,7 +15053,7 @@ static void lts_aga_fm1_n0_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15218,7 +15218,7 @@ static void lts_aga_fm1_n1_p4_ihires_dshres_genlock(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -15273,7 +15273,7 @@ static void lts_aga_fm1_n1_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15414,7 +15414,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dshres_genlock(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -15469,7 +15469,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15654,7 +15654,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dshres_genlock(void) loaded_pix = getbpl4_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -15709,7 +15709,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15854,7 +15854,7 @@ static void lts_aga_fm1_n0_p8_ihires_dshres_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -15909,7 +15909,7 @@ static void lts_aga_fm1_n0_p8_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16074,7 +16074,7 @@ static void lts_aga_fm1_n1_p8_ihires_dshres_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -16129,7 +16129,7 @@ static void lts_aga_fm1_n1_p8_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16270,7 +16270,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dshres_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -16325,7 +16325,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16510,7 +16510,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dshres_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -16565,7 +16565,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16694,7 +16694,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dshres_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -16749,7 +16749,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16914,7 +16914,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dshres_genlock(void) loaded_pix = getbpl8_32(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -16969,7 +16969,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17134,7 +17134,7 @@ static void lts_aga_fm1_n0_p4_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17221,7 +17221,7 @@ static void lts_aga_fm1_n0_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17422,7 +17422,7 @@ static void lts_aga_fm1_n1_p4_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17509,7 +17509,7 @@ static void lts_aga_fm1_n1_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17686,7 +17686,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17773,7 +17773,7 @@ static void lts_aga_fm1_dpf0_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17994,7 +17994,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18081,7 +18081,7 @@ static void lts_aga_fm1_dpf1_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18262,7 +18262,7 @@ static void lts_aga_fm1_n0_p8_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18349,7 +18349,7 @@ static void lts_aga_fm1_n0_p8_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18550,7 +18550,7 @@ static void lts_aga_fm1_n1_p8_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18637,7 +18637,7 @@ static void lts_aga_fm1_n1_p8_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18814,7 +18814,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18901,7 +18901,7 @@ static void lts_aga_fm1_dpf0_p8_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19122,7 +19122,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19209,7 +19209,7 @@ static void lts_aga_fm1_dpf1_p8_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19374,7 +19374,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19461,7 +19461,7 @@ static void lts_aga_fm1_ham0_p8_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19662,7 +19662,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19749,7 +19749,7 @@ static void lts_aga_fm1_ham1_p8_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19854,7 +19854,7 @@ static void lts_aga_fm1_n0_p4_ishres_dshres_genlock(void) } loaded_pix = getbpl4_32(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -19909,7 +19909,7 @@ static void lts_aga_fm1_n0_p4_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20018,7 +20018,7 @@ static void lts_aga_fm1_n1_p4_ishres_dshres_genlock(void) } loaded_pix = getbpl4_32(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -20073,7 +20073,7 @@ static void lts_aga_fm1_n1_p4_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20190,7 +20190,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dshres_genlock(void) } loaded_pix = getbpl4_32(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -20245,7 +20245,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20374,7 +20374,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dshres_genlock(void) } loaded_pix = getbpl4_32(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -20429,7 +20429,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20626,7 +20626,7 @@ static void lts_aga_fm1_n0_p4_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20713,7 +20713,7 @@ static void lts_aga_fm1_n0_p4_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20858,7 +20858,7 @@ static void lts_aga_fm1_n1_p4_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20945,7 +20945,7 @@ static void lts_aga_fm1_n1_p4_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21098,7 +21098,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21185,7 +21185,7 @@ static void lts_aga_fm1_dpf0_p4_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21350,7 +21350,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21437,7 +21437,7 @@ static void lts_aga_fm1_dpf1_p4_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } diff --git a/linetoscr_aga_fm2.cpp b/linetoscr_aga_fm2.cpp index 3d7cb4e0..30d3f59a 100644 --- a/linetoscr_aga_fm2.cpp +++ b/linetoscr_aga_fm2.cpp @@ -33,7 +33,7 @@ static void lts_aga_fm2_n0_p2_ilores_dlores(void) } loaded_pix = getbpl2_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -53,7 +53,7 @@ static void lts_aga_fm2_n0_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -90,7 +90,7 @@ static void lts_aga_fm2_n1_p2_ilores_dlores(void) } loaded_pix = getbpl2_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -110,7 +110,7 @@ static void lts_aga_fm2_n1_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -149,7 +149,7 @@ static void lts_aga_fm2_dpf0_p2_ilores_dlores(void) } loaded_pix = getbpl2_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -169,7 +169,7 @@ static void lts_aga_fm2_dpf0_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -211,7 +211,7 @@ static void lts_aga_fm2_dpf1_p2_ilores_dlores(void) } loaded_pix = getbpl2_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -231,7 +231,7 @@ static void lts_aga_fm2_dpf1_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -289,7 +289,7 @@ static void lts_aga_fm2_n0_p4_ilores_dlores(void) } loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -309,7 +309,7 @@ static void lts_aga_fm2_n0_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -346,7 +346,7 @@ static void lts_aga_fm2_n1_p4_ilores_dlores(void) } loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -366,7 +366,7 @@ static void lts_aga_fm2_n1_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -405,7 +405,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dlores(void) } loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -425,7 +425,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -467,7 +467,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dlores(void) } loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -487,7 +487,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -545,7 +545,7 @@ static void lts_aga_fm2_n0_p6_ilores_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -565,7 +565,7 @@ static void lts_aga_fm2_n0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -602,7 +602,7 @@ static void lts_aga_fm2_n1_p6_ilores_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -622,7 +622,7 @@ static void lts_aga_fm2_n1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -661,7 +661,7 @@ static void lts_aga_fm2_dpf0_p6_ilores_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -681,7 +681,7 @@ static void lts_aga_fm2_dpf0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -723,7 +723,7 @@ static void lts_aga_fm2_dpf1_p6_ilores_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -743,7 +743,7 @@ static void lts_aga_fm2_dpf1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -783,7 +783,7 @@ static void lts_aga_fm2_ehb0_p6_ilores_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -803,7 +803,7 @@ static void lts_aga_fm2_ehb0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -846,7 +846,7 @@ static void lts_aga_fm2_ehb1_p6_ilores_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -866,7 +866,7 @@ static void lts_aga_fm2_ehb1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -900,7 +900,7 @@ static void lts_aga_fm2_ham0_p6_ilores_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -920,7 +920,7 @@ static void lts_aga_fm2_ham0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -957,7 +957,7 @@ static void lts_aga_fm2_ham1_p6_ilores_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -977,7 +977,7 @@ static void lts_aga_fm2_ham1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1012,7 +1012,7 @@ static void lts_aga_fm2_kehb0_p6_ilores_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1032,7 +1032,7 @@ static void lts_aga_fm2_kehb0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1070,7 +1070,7 @@ static void lts_aga_fm2_kehb1_p6_ilores_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1090,7 +1090,7 @@ static void lts_aga_fm2_kehb1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1124,7 +1124,7 @@ static void lts_aga_fm2_n0_p8_ilores_dlores(void) } loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1144,7 +1144,7 @@ static void lts_aga_fm2_n0_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1181,7 +1181,7 @@ static void lts_aga_fm2_n1_p8_ilores_dlores(void) } loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1201,7 +1201,7 @@ static void lts_aga_fm2_n1_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1240,7 +1240,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dlores(void) } loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1260,7 +1260,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1302,7 +1302,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dlores(void) } loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1322,7 +1322,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1364,7 +1364,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dlores(void) } loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1384,7 +1384,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1421,7 +1421,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dlores(void) } loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -1441,7 +1441,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1492,7 +1492,7 @@ static void lts_aga_fm2_n0_p2_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1518,7 +1518,7 @@ static void lts_aga_fm2_n0_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1564,7 +1564,7 @@ static void lts_aga_fm2_n1_p2_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1590,7 +1590,7 @@ static void lts_aga_fm2_n1_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1638,7 +1638,7 @@ static void lts_aga_fm2_dpf0_p2_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1664,7 +1664,7 @@ static void lts_aga_fm2_dpf0_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1715,7 +1715,7 @@ static void lts_aga_fm2_dpf1_p2_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1741,7 +1741,7 @@ static void lts_aga_fm2_dpf1_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1808,7 +1808,7 @@ static void lts_aga_fm2_n0_p4_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1834,7 +1834,7 @@ static void lts_aga_fm2_n0_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1880,7 +1880,7 @@ static void lts_aga_fm2_n1_p4_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1906,7 +1906,7 @@ static void lts_aga_fm2_n1_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1954,7 +1954,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1980,7 +1980,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2031,7 +2031,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2057,7 +2057,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2124,7 +2124,7 @@ static void lts_aga_fm2_n0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2150,7 +2150,7 @@ static void lts_aga_fm2_n0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2196,7 +2196,7 @@ static void lts_aga_fm2_n1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2222,7 +2222,7 @@ static void lts_aga_fm2_n1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2270,7 +2270,7 @@ static void lts_aga_fm2_dpf0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2296,7 +2296,7 @@ static void lts_aga_fm2_dpf0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2347,7 +2347,7 @@ static void lts_aga_fm2_dpf1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2373,7 +2373,7 @@ static void lts_aga_fm2_dpf1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2422,7 +2422,7 @@ static void lts_aga_fm2_ehb0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2448,7 +2448,7 @@ static void lts_aga_fm2_ehb0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2500,7 +2500,7 @@ static void lts_aga_fm2_ehb1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2526,7 +2526,7 @@ static void lts_aga_fm2_ehb1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2569,7 +2569,7 @@ static void lts_aga_fm2_ham0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2595,7 +2595,7 @@ static void lts_aga_fm2_ham0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2641,7 +2641,7 @@ static void lts_aga_fm2_ham1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2667,7 +2667,7 @@ static void lts_aga_fm2_ham1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2711,7 +2711,7 @@ static void lts_aga_fm2_kehb0_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2737,7 +2737,7 @@ static void lts_aga_fm2_kehb0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2784,7 +2784,7 @@ static void lts_aga_fm2_kehb1_p6_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2810,7 +2810,7 @@ static void lts_aga_fm2_kehb1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2853,7 +2853,7 @@ static void lts_aga_fm2_n0_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2879,7 +2879,7 @@ static void lts_aga_fm2_n0_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2925,7 +2925,7 @@ static void lts_aga_fm2_n1_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2951,7 +2951,7 @@ static void lts_aga_fm2_n1_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2999,7 +2999,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3025,7 +3025,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3076,7 +3076,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3102,7 +3102,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3153,7 +3153,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3179,7 +3179,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3225,7 +3225,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dlores_spr(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3251,7 +3251,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3294,7 +3294,7 @@ static void lts_aga_fm2_n0_p2_ihires_dlores(void) loaded_pix = getbpl2_64(); loaded_pixs[0] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3314,7 +3314,7 @@ static void lts_aga_fm2_n0_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3352,7 +3352,7 @@ static void lts_aga_fm2_n1_p2_ihires_dlores(void) loaded_pix = getbpl2_64(); loaded_pixs[0] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3372,7 +3372,7 @@ static void lts_aga_fm2_n1_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3412,7 +3412,7 @@ static void lts_aga_fm2_dpf0_p2_ihires_dlores(void) loaded_pix = getbpl2_64(); loaded_pixs[0] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3432,7 +3432,7 @@ static void lts_aga_fm2_dpf0_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3475,7 +3475,7 @@ static void lts_aga_fm2_dpf1_p2_ihires_dlores(void) loaded_pix = getbpl2_64(); loaded_pixs[0] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3495,7 +3495,7 @@ static void lts_aga_fm2_dpf1_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3554,7 +3554,7 @@ static void lts_aga_fm2_n0_p4_ihires_dlores(void) loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3574,7 +3574,7 @@ static void lts_aga_fm2_n0_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3612,7 +3612,7 @@ static void lts_aga_fm2_n1_p4_ihires_dlores(void) loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3632,7 +3632,7 @@ static void lts_aga_fm2_n1_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3672,7 +3672,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dlores(void) loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3692,7 +3692,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3735,7 +3735,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dlores(void) loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3755,7 +3755,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3814,7 +3814,7 @@ static void lts_aga_fm2_n0_p6_ihires_dlores(void) loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3834,7 +3834,7 @@ static void lts_aga_fm2_n0_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3872,7 +3872,7 @@ static void lts_aga_fm2_n1_p6_ihires_dlores(void) loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3892,7 +3892,7 @@ static void lts_aga_fm2_n1_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3932,7 +3932,7 @@ static void lts_aga_fm2_dpf0_p6_ihires_dlores(void) loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -3952,7 +3952,7 @@ static void lts_aga_fm2_dpf0_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3995,7 +3995,7 @@ static void lts_aga_fm2_dpf1_p6_ihires_dlores(void) loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4015,7 +4015,7 @@ static void lts_aga_fm2_dpf1_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4056,7 +4056,7 @@ static void lts_aga_fm2_ehb0_p6_ihires_dlores(void) loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4076,7 +4076,7 @@ static void lts_aga_fm2_ehb0_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4120,7 +4120,7 @@ static void lts_aga_fm2_ehb1_p6_ihires_dlores(void) loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4140,7 +4140,7 @@ static void lts_aga_fm2_ehb1_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4190,7 +4190,7 @@ static void lts_aga_fm2_ham0_p6_ihires_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4210,7 +4210,7 @@ static void lts_aga_fm2_ham0_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4266,7 +4266,7 @@ static void lts_aga_fm2_ham1_p6_ihires_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4286,7 +4286,7 @@ static void lts_aga_fm2_ham1_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4322,7 +4322,7 @@ static void lts_aga_fm2_kehb0_p6_ihires_dlores(void) loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4342,7 +4342,7 @@ static void lts_aga_fm2_kehb0_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4381,7 +4381,7 @@ static void lts_aga_fm2_kehb1_p6_ihires_dlores(void) loaded_pix = getbpl6_64(); loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4401,7 +4401,7 @@ static void lts_aga_fm2_kehb1_p6_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4436,7 +4436,7 @@ static void lts_aga_fm2_n0_p8_ihires_dlores(void) loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4456,7 +4456,7 @@ static void lts_aga_fm2_n0_p8_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4494,7 +4494,7 @@ static void lts_aga_fm2_n1_p8_ihires_dlores(void) loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4514,7 +4514,7 @@ static void lts_aga_fm2_n1_p8_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4554,7 +4554,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dlores(void) loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4574,7 +4574,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4617,7 +4617,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dlores(void) loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4637,7 +4637,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4695,7 +4695,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dlores(void) } loaded_pix = getbpl8_64(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4715,7 +4715,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4771,7 +4771,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dlores(void) } loaded_pix = getbpl8_64(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -4791,7 +4791,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4843,7 +4843,7 @@ static void lts_aga_fm2_n0_p2_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4869,7 +4869,7 @@ static void lts_aga_fm2_n0_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4916,7 +4916,7 @@ static void lts_aga_fm2_n1_p2_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4942,7 +4942,7 @@ static void lts_aga_fm2_n1_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4991,7 +4991,7 @@ static void lts_aga_fm2_dpf0_p2_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5017,7 +5017,7 @@ static void lts_aga_fm2_dpf0_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5069,7 +5069,7 @@ static void lts_aga_fm2_dpf1_p2_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5095,7 +5095,7 @@ static void lts_aga_fm2_dpf1_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5163,7 +5163,7 @@ static void lts_aga_fm2_n0_p4_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5189,7 +5189,7 @@ static void lts_aga_fm2_n0_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5236,7 +5236,7 @@ static void lts_aga_fm2_n1_p4_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5262,7 +5262,7 @@ static void lts_aga_fm2_n1_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5311,7 +5311,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5337,7 +5337,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5389,7 +5389,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5415,7 +5415,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5483,7 +5483,7 @@ static void lts_aga_fm2_n0_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5509,7 +5509,7 @@ static void lts_aga_fm2_n0_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5556,7 +5556,7 @@ static void lts_aga_fm2_n1_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5582,7 +5582,7 @@ static void lts_aga_fm2_n1_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5631,7 +5631,7 @@ static void lts_aga_fm2_dpf0_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5657,7 +5657,7 @@ static void lts_aga_fm2_dpf0_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5709,7 +5709,7 @@ static void lts_aga_fm2_dpf1_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5735,7 +5735,7 @@ static void lts_aga_fm2_dpf1_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5785,7 +5785,7 @@ static void lts_aga_fm2_ehb0_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5811,7 +5811,7 @@ static void lts_aga_fm2_ehb0_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5864,7 +5864,7 @@ static void lts_aga_fm2_ehb1_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5890,7 +5890,7 @@ static void lts_aga_fm2_ehb1_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5949,7 +5949,7 @@ static void lts_aga_fm2_ham0_p6_ihires_dlores_spr(void) } loaded_pix = getbpl6_64(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5975,7 +5975,7 @@ static void lts_aga_fm2_ham0_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6040,7 +6040,7 @@ static void lts_aga_fm2_ham1_p6_ihires_dlores_spr(void) } loaded_pix = getbpl6_64(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6066,7 +6066,7 @@ static void lts_aga_fm2_ham1_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6111,7 +6111,7 @@ static void lts_aga_fm2_kehb0_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6137,7 +6137,7 @@ static void lts_aga_fm2_kehb0_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6185,7 +6185,7 @@ static void lts_aga_fm2_kehb1_p6_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6211,7 +6211,7 @@ static void lts_aga_fm2_kehb1_p6_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6255,7 +6255,7 @@ static void lts_aga_fm2_n0_p8_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6281,7 +6281,7 @@ static void lts_aga_fm2_n0_p8_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6328,7 +6328,7 @@ static void lts_aga_fm2_n1_p8_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6354,7 +6354,7 @@ static void lts_aga_fm2_n1_p8_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6403,7 +6403,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6429,7 +6429,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6481,7 +6481,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dlores_spr(void) } loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6507,7 +6507,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6574,7 +6574,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dlores_spr(void) } loaded_pix = getbpl8_64(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6600,7 +6600,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6665,7 +6665,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dlores_spr(void) } loaded_pix = getbpl8_64(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6691,7 +6691,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6736,7 +6736,7 @@ static void lts_aga_fm2_n0_p2_ishres_dlores(void) shiftbpl2_64(); shiftbpl2_64(); shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -6756,7 +6756,7 @@ static void lts_aga_fm2_n0_p2_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6796,7 +6796,7 @@ static void lts_aga_fm2_n1_p2_ishres_dlores(void) shiftbpl2_64(); shiftbpl2_64(); shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -6816,7 +6816,7 @@ static void lts_aga_fm2_n1_p2_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6858,7 +6858,7 @@ static void lts_aga_fm2_dpf0_p2_ishres_dlores(void) shiftbpl2_64(); shiftbpl2_64(); shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -6878,7 +6878,7 @@ static void lts_aga_fm2_dpf0_p2_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6923,7 +6923,7 @@ static void lts_aga_fm2_dpf1_p2_ishres_dlores(void) shiftbpl2_64(); shiftbpl2_64(); shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -6943,7 +6943,7 @@ static void lts_aga_fm2_dpf1_p2_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7004,7 +7004,7 @@ static void lts_aga_fm2_n0_p4_ishres_dlores(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7024,7 +7024,7 @@ static void lts_aga_fm2_n0_p4_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7064,7 +7064,7 @@ static void lts_aga_fm2_n1_p4_ishres_dlores(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7084,7 +7084,7 @@ static void lts_aga_fm2_n1_p4_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7126,7 +7126,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dlores(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7146,7 +7146,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7191,7 +7191,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dlores(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7211,7 +7211,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7272,7 +7272,7 @@ static void lts_aga_fm2_n0_p6_ishres_dlores(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7292,7 +7292,7 @@ static void lts_aga_fm2_n0_p6_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7332,7 +7332,7 @@ static void lts_aga_fm2_n1_p6_ishres_dlores(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7352,7 +7352,7 @@ static void lts_aga_fm2_n1_p6_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7394,7 +7394,7 @@ static void lts_aga_fm2_dpf0_p6_ishres_dlores(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7414,7 +7414,7 @@ static void lts_aga_fm2_dpf0_p6_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7459,7 +7459,7 @@ static void lts_aga_fm2_dpf1_p6_ishres_dlores(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7479,7 +7479,7 @@ static void lts_aga_fm2_dpf1_p6_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7522,7 +7522,7 @@ static void lts_aga_fm2_ehb0_p6_ishres_dlores(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7542,7 +7542,7 @@ static void lts_aga_fm2_ehb0_p6_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7588,7 +7588,7 @@ static void lts_aga_fm2_ehb1_p6_ishres_dlores(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7608,7 +7608,7 @@ static void lts_aga_fm2_ehb1_p6_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7690,7 +7690,7 @@ static void lts_aga_fm2_ham0_p6_ishres_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7710,7 +7710,7 @@ static void lts_aga_fm2_ham0_p6_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7804,7 +7804,7 @@ static void lts_aga_fm2_ham1_p6_ishres_dlores(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7824,7 +7824,7 @@ static void lts_aga_fm2_ham1_p6_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7862,7 +7862,7 @@ static void lts_aga_fm2_kehb0_p6_ishres_dlores(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7882,7 +7882,7 @@ static void lts_aga_fm2_kehb0_p6_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7923,7 +7923,7 @@ static void lts_aga_fm2_kehb1_p6_ishres_dlores(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -7943,7 +7943,7 @@ static void lts_aga_fm2_kehb1_p6_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7980,7 +7980,7 @@ static void lts_aga_fm2_n0_p8_ishres_dlores(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -8000,7 +8000,7 @@ static void lts_aga_fm2_n0_p8_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8040,7 +8040,7 @@ static void lts_aga_fm2_n1_p8_ishres_dlores(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -8060,7 +8060,7 @@ static void lts_aga_fm2_n1_p8_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8102,7 +8102,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dlores(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -8122,7 +8122,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8167,7 +8167,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dlores(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -8187,7 +8187,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8277,7 +8277,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dlores(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -8297,7 +8297,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8391,7 +8391,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dlores(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = dtbuf[h ^ lol][0]; #ifdef DEBUGGER @@ -8411,7 +8411,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8465,7 +8465,7 @@ static void lts_aga_fm2_n0_p2_ishres_dlores_spr(void) shiftbpl2_64(); shiftbpl2_64(); shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8491,7 +8491,7 @@ static void lts_aga_fm2_n0_p2_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8540,7 +8540,7 @@ static void lts_aga_fm2_n1_p2_ishres_dlores_spr(void) shiftbpl2_64(); shiftbpl2_64(); shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8566,7 +8566,7 @@ static void lts_aga_fm2_n1_p2_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8617,7 +8617,7 @@ static void lts_aga_fm2_dpf0_p2_ishres_dlores_spr(void) shiftbpl2_64(); shiftbpl2_64(); shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8643,7 +8643,7 @@ static void lts_aga_fm2_dpf0_p2_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8697,7 +8697,7 @@ static void lts_aga_fm2_dpf1_p2_ishres_dlores_spr(void) shiftbpl2_64(); shiftbpl2_64(); shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8723,7 +8723,7 @@ static void lts_aga_fm2_dpf1_p2_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8793,7 +8793,7 @@ static void lts_aga_fm2_n0_p4_ishres_dlores_spr(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8819,7 +8819,7 @@ static void lts_aga_fm2_n0_p4_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8868,7 +8868,7 @@ static void lts_aga_fm2_n1_p4_ishres_dlores_spr(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8894,7 +8894,7 @@ static void lts_aga_fm2_n1_p4_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8945,7 +8945,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dlores_spr(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8971,7 +8971,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9025,7 +9025,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dlores_spr(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9051,7 +9051,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9121,7 +9121,7 @@ static void lts_aga_fm2_n0_p6_ishres_dlores_spr(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9147,7 +9147,7 @@ static void lts_aga_fm2_n0_p6_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9196,7 +9196,7 @@ static void lts_aga_fm2_n1_p6_ishres_dlores_spr(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9222,7 +9222,7 @@ static void lts_aga_fm2_n1_p6_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9273,7 +9273,7 @@ static void lts_aga_fm2_dpf0_p6_ishres_dlores_spr(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9299,7 +9299,7 @@ static void lts_aga_fm2_dpf0_p6_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9353,7 +9353,7 @@ static void lts_aga_fm2_dpf1_p6_ishres_dlores_spr(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9379,7 +9379,7 @@ static void lts_aga_fm2_dpf1_p6_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9431,7 +9431,7 @@ static void lts_aga_fm2_ehb0_p6_ishres_dlores_spr(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9457,7 +9457,7 @@ static void lts_aga_fm2_ehb0_p6_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9512,7 +9512,7 @@ static void lts_aga_fm2_ehb1_p6_ishres_dlores_spr(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9538,7 +9538,7 @@ static void lts_aga_fm2_ehb1_p6_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9629,7 +9629,7 @@ static void lts_aga_fm2_ham0_p6_ishres_dlores_spr(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9655,7 +9655,7 @@ static void lts_aga_fm2_ham0_p6_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9758,7 +9758,7 @@ static void lts_aga_fm2_ham1_p6_ishres_dlores_spr(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9784,7 +9784,7 @@ static void lts_aga_fm2_ham1_p6_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9831,7 +9831,7 @@ static void lts_aga_fm2_kehb0_p6_ishres_dlores_spr(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9857,7 +9857,7 @@ static void lts_aga_fm2_kehb0_p6_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9907,7 +9907,7 @@ static void lts_aga_fm2_kehb1_p6_ishres_dlores_spr(void) shiftbpl6_64(); shiftbpl6_64(); shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9933,7 +9933,7 @@ static void lts_aga_fm2_kehb1_p6_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9979,7 +9979,7 @@ static void lts_aga_fm2_n0_p8_ishres_dlores_spr(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10005,7 +10005,7 @@ static void lts_aga_fm2_n0_p8_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10054,7 +10054,7 @@ static void lts_aga_fm2_n1_p8_ishres_dlores_spr(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10080,7 +10080,7 @@ static void lts_aga_fm2_n1_p8_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10131,7 +10131,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dlores_spr(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10157,7 +10157,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10211,7 +10211,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dlores_spr(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10237,7 +10237,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10336,7 +10336,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dlores_spr(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10362,7 +10362,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10465,7 +10465,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dlores_spr(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -10491,7 +10491,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10562,7 +10562,7 @@ static void lts_aga_fm2_n0_p2_ilores_dhires(void) loaded_pix = getbpl2_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -10591,7 +10591,7 @@ static void lts_aga_fm2_n0_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10676,7 +10676,7 @@ static void lts_aga_fm2_n1_p2_ilores_dhires(void) loaded_pix = getbpl2_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -10705,7 +10705,7 @@ static void lts_aga_fm2_n1_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10778,7 +10778,7 @@ static void lts_aga_fm2_dpf0_p2_ilores_dhires(void) loaded_pix = getbpl2_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -10807,7 +10807,7 @@ static void lts_aga_fm2_dpf0_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10902,7 +10902,7 @@ static void lts_aga_fm2_dpf1_p2_ilores_dhires(void) loaded_pix = getbpl2_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -10931,7 +10931,7 @@ static void lts_aga_fm2_dpf1_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11018,7 +11018,7 @@ static void lts_aga_fm2_n0_p4_ilores_dhires(void) loaded_pix = getbpl4_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11047,7 +11047,7 @@ static void lts_aga_fm2_n0_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11132,7 +11132,7 @@ static void lts_aga_fm2_n1_p4_ilores_dhires(void) loaded_pix = getbpl4_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11161,7 +11161,7 @@ static void lts_aga_fm2_n1_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11234,7 +11234,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dhires(void) loaded_pix = getbpl4_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11263,7 +11263,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11358,7 +11358,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dhires(void) loaded_pix = getbpl4_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11387,7 +11387,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11474,7 +11474,7 @@ static void lts_aga_fm2_n0_p6_ilores_dhires(void) loaded_pix = getbpl6_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11503,7 +11503,7 @@ static void lts_aga_fm2_n0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11588,7 +11588,7 @@ static void lts_aga_fm2_n1_p6_ilores_dhires(void) loaded_pix = getbpl6_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11617,7 +11617,7 @@ static void lts_aga_fm2_n1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11690,7 +11690,7 @@ static void lts_aga_fm2_dpf0_p6_ilores_dhires(void) loaded_pix = getbpl6_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11719,7 +11719,7 @@ static void lts_aga_fm2_dpf0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11814,7 +11814,7 @@ static void lts_aga_fm2_dpf1_p6_ilores_dhires(void) loaded_pix = getbpl6_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11843,7 +11843,7 @@ static void lts_aga_fm2_dpf1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11918,7 +11918,7 @@ static void lts_aga_fm2_ehb0_p6_ilores_dhires(void) loaded_pix = getbpl6_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -11947,7 +11947,7 @@ static void lts_aga_fm2_ehb0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12044,7 +12044,7 @@ static void lts_aga_fm2_ehb1_p6_ilores_dhires(void) loaded_pix = getbpl6_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -12073,7 +12073,7 @@ static void lts_aga_fm2_ehb1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12136,7 +12136,7 @@ static void lts_aga_fm2_ham0_p6_ilores_dhires(void) loaded_pix = getbpl6_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -12165,7 +12165,7 @@ static void lts_aga_fm2_ham0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12250,7 +12250,7 @@ static void lts_aga_fm2_ham1_p6_ilores_dhires(void) loaded_pix = getbpl6_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -12279,7 +12279,7 @@ static void lts_aga_fm2_ham1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12344,7 +12344,7 @@ static void lts_aga_fm2_kehb0_p6_ilores_dhires(void) loaded_pix = getbpl6_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -12373,7 +12373,7 @@ static void lts_aga_fm2_kehb0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12460,7 +12460,7 @@ static void lts_aga_fm2_kehb1_p6_ilores_dhires(void) loaded_pix = getbpl6_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -12489,7 +12489,7 @@ static void lts_aga_fm2_kehb1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12552,7 +12552,7 @@ static void lts_aga_fm2_n0_p8_ilores_dhires(void) loaded_pix = getbpl8_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -12581,7 +12581,7 @@ static void lts_aga_fm2_n0_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12666,7 +12666,7 @@ static void lts_aga_fm2_n1_p8_ilores_dhires(void) loaded_pix = getbpl8_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -12695,7 +12695,7 @@ static void lts_aga_fm2_n1_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12768,7 +12768,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dhires(void) loaded_pix = getbpl8_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -12797,7 +12797,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12892,7 +12892,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dhires(void) loaded_pix = getbpl8_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -12921,7 +12921,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12992,7 +12992,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dhires(void) loaded_pix = getbpl8_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -13021,7 +13021,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13106,7 +13106,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dhires(void) loaded_pix = getbpl8_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -13135,7 +13135,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13224,7 +13224,7 @@ static void lts_aga_fm2_n0_p2_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13265,7 +13265,7 @@ static void lts_aga_fm2_n0_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13368,7 +13368,7 @@ static void lts_aga_fm2_n1_p2_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13409,7 +13409,7 @@ static void lts_aga_fm2_n1_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13500,7 +13500,7 @@ static void lts_aga_fm2_dpf0_p2_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13541,7 +13541,7 @@ static void lts_aga_fm2_dpf0_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13654,7 +13654,7 @@ static void lts_aga_fm2_dpf1_p2_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13695,7 +13695,7 @@ static void lts_aga_fm2_dpf1_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13800,7 +13800,7 @@ static void lts_aga_fm2_n0_p4_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13841,7 +13841,7 @@ static void lts_aga_fm2_n0_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13944,7 +13944,7 @@ static void lts_aga_fm2_n1_p4_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13985,7 +13985,7 @@ static void lts_aga_fm2_n1_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14076,7 +14076,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14117,7 +14117,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14230,7 +14230,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14271,7 +14271,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14376,7 +14376,7 @@ static void lts_aga_fm2_n0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14417,7 +14417,7 @@ static void lts_aga_fm2_n0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14520,7 +14520,7 @@ static void lts_aga_fm2_n1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14561,7 +14561,7 @@ static void lts_aga_fm2_n1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14652,7 +14652,7 @@ static void lts_aga_fm2_dpf0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14693,7 +14693,7 @@ static void lts_aga_fm2_dpf0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14806,7 +14806,7 @@ static void lts_aga_fm2_dpf1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14847,7 +14847,7 @@ static void lts_aga_fm2_dpf1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14940,7 +14940,7 @@ static void lts_aga_fm2_ehb0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14981,7 +14981,7 @@ static void lts_aga_fm2_ehb0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15096,7 +15096,7 @@ static void lts_aga_fm2_ehb1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15137,7 +15137,7 @@ static void lts_aga_fm2_ehb1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15218,7 +15218,7 @@ static void lts_aga_fm2_ham0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15259,7 +15259,7 @@ static void lts_aga_fm2_ham0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15362,7 +15362,7 @@ static void lts_aga_fm2_ham1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15403,7 +15403,7 @@ static void lts_aga_fm2_ham1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15486,7 +15486,7 @@ static void lts_aga_fm2_kehb0_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15527,7 +15527,7 @@ static void lts_aga_fm2_kehb0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15632,7 +15632,7 @@ static void lts_aga_fm2_kehb1_p6_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15673,7 +15673,7 @@ static void lts_aga_fm2_kehb1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15754,7 +15754,7 @@ static void lts_aga_fm2_n0_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15795,7 +15795,7 @@ static void lts_aga_fm2_n0_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15898,7 +15898,7 @@ static void lts_aga_fm2_n1_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15939,7 +15939,7 @@ static void lts_aga_fm2_n1_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16030,7 +16030,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16071,7 +16071,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16184,7 +16184,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16225,7 +16225,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16314,7 +16314,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16355,7 +16355,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16458,7 +16458,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16499,7 +16499,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16558,7 +16558,7 @@ static void lts_aga_fm2_n0_p2_ihires_dhires(void) } loaded_pix = getbpl2_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -16587,7 +16587,7 @@ static void lts_aga_fm2_n0_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16644,7 +16644,7 @@ static void lts_aga_fm2_n1_p2_ihires_dhires(void) } loaded_pix = getbpl2_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -16673,7 +16673,7 @@ static void lts_aga_fm2_n1_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16734,7 +16734,7 @@ static void lts_aga_fm2_dpf0_p2_ihires_dhires(void) } loaded_pix = getbpl2_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -16763,7 +16763,7 @@ static void lts_aga_fm2_dpf0_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16830,7 +16830,7 @@ static void lts_aga_fm2_dpf1_p2_ihires_dhires(void) } loaded_pix = getbpl2_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -16859,7 +16859,7 @@ static void lts_aga_fm2_dpf1_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16934,7 +16934,7 @@ static void lts_aga_fm2_n0_p4_ihires_dhires(void) } loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -16963,7 +16963,7 @@ static void lts_aga_fm2_n0_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17020,7 +17020,7 @@ static void lts_aga_fm2_n1_p4_ihires_dhires(void) } loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -17049,7 +17049,7 @@ static void lts_aga_fm2_n1_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17110,7 +17110,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dhires(void) } loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -17139,7 +17139,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17206,7 +17206,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dhires(void) } loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -17235,7 +17235,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17310,7 +17310,7 @@ static void lts_aga_fm2_n0_p6_ihires_dhires(void) } loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -17339,7 +17339,7 @@ static void lts_aga_fm2_n0_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17396,7 +17396,7 @@ static void lts_aga_fm2_n1_p6_ihires_dhires(void) } loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -17425,7 +17425,7 @@ static void lts_aga_fm2_n1_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17486,7 +17486,7 @@ static void lts_aga_fm2_dpf0_p6_ihires_dhires(void) } loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -17515,7 +17515,7 @@ static void lts_aga_fm2_dpf0_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17582,7 +17582,7 @@ static void lts_aga_fm2_dpf1_p6_ihires_dhires(void) } loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -17611,7 +17611,7 @@ static void lts_aga_fm2_dpf1_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17674,7 +17674,7 @@ static void lts_aga_fm2_ehb0_p6_ihires_dhires(void) } loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -17703,7 +17703,7 @@ static void lts_aga_fm2_ehb0_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17772,7 +17772,7 @@ static void lts_aga_fm2_ehb1_p6_ihires_dhires(void) } loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -17801,7 +17801,7 @@ static void lts_aga_fm2_ehb1_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17852,7 +17852,7 @@ static void lts_aga_fm2_ham0_p6_ihires_dhires(void) } loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -17881,7 +17881,7 @@ static void lts_aga_fm2_ham0_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17938,7 +17938,7 @@ static void lts_aga_fm2_ham1_p6_ihires_dhires(void) } loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -17967,7 +17967,7 @@ static void lts_aga_fm2_ham1_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18020,7 +18020,7 @@ static void lts_aga_fm2_kehb0_p6_ihires_dhires(void) } loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -18049,7 +18049,7 @@ static void lts_aga_fm2_kehb0_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18108,7 +18108,7 @@ static void lts_aga_fm2_kehb1_p6_ihires_dhires(void) } loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -18137,7 +18137,7 @@ static void lts_aga_fm2_kehb1_p6_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18188,7 +18188,7 @@ static void lts_aga_fm2_n0_p8_ihires_dhires(void) } loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -18217,7 +18217,7 @@ static void lts_aga_fm2_n0_p8_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18274,7 +18274,7 @@ static void lts_aga_fm2_n1_p8_ihires_dhires(void) } loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -18303,7 +18303,7 @@ static void lts_aga_fm2_n1_p8_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18364,7 +18364,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dhires(void) } loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -18393,7 +18393,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18460,7 +18460,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dhires(void) } loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -18489,7 +18489,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18548,7 +18548,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dhires(void) } loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -18577,7 +18577,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18634,7 +18634,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dhires(void) } loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -18663,7 +18663,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18740,7 +18740,7 @@ static void lts_aga_fm2_n0_p2_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18781,7 +18781,7 @@ static void lts_aga_fm2_n0_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18856,7 +18856,7 @@ static void lts_aga_fm2_n1_p2_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -18897,7 +18897,7 @@ static void lts_aga_fm2_n1_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18976,7 +18976,7 @@ static void lts_aga_fm2_dpf0_p2_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19017,7 +19017,7 @@ static void lts_aga_fm2_dpf0_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19102,7 +19102,7 @@ static void lts_aga_fm2_dpf1_p2_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19143,7 +19143,7 @@ static void lts_aga_fm2_dpf1_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19236,7 +19236,7 @@ static void lts_aga_fm2_n0_p4_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19277,7 +19277,7 @@ static void lts_aga_fm2_n0_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19352,7 +19352,7 @@ static void lts_aga_fm2_n1_p4_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19393,7 +19393,7 @@ static void lts_aga_fm2_n1_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19472,7 +19472,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19513,7 +19513,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19598,7 +19598,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19639,7 +19639,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19732,7 +19732,7 @@ static void lts_aga_fm2_n0_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19773,7 +19773,7 @@ static void lts_aga_fm2_n0_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19848,7 +19848,7 @@ static void lts_aga_fm2_n1_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19889,7 +19889,7 @@ static void lts_aga_fm2_n1_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19968,7 +19968,7 @@ static void lts_aga_fm2_dpf0_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20009,7 +20009,7 @@ static void lts_aga_fm2_dpf0_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20094,7 +20094,7 @@ static void lts_aga_fm2_dpf1_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20135,7 +20135,7 @@ static void lts_aga_fm2_dpf1_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20216,7 +20216,7 @@ static void lts_aga_fm2_ehb0_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20257,7 +20257,7 @@ static void lts_aga_fm2_ehb0_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20344,7 +20344,7 @@ static void lts_aga_fm2_ehb1_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20385,7 +20385,7 @@ static void lts_aga_fm2_ehb1_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20454,7 +20454,7 @@ static void lts_aga_fm2_ham0_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20495,7 +20495,7 @@ static void lts_aga_fm2_ham0_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20570,7 +20570,7 @@ static void lts_aga_fm2_ham1_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20611,7 +20611,7 @@ static void lts_aga_fm2_ham1_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20682,7 +20682,7 @@ static void lts_aga_fm2_kehb0_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20723,7 +20723,7 @@ static void lts_aga_fm2_kehb0_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20800,7 +20800,7 @@ static void lts_aga_fm2_kehb1_p6_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20841,7 +20841,7 @@ static void lts_aga_fm2_kehb1_p6_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20910,7 +20910,7 @@ static void lts_aga_fm2_n0_p8_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20951,7 +20951,7 @@ static void lts_aga_fm2_n0_p8_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21026,7 +21026,7 @@ static void lts_aga_fm2_n1_p8_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21067,7 +21067,7 @@ static void lts_aga_fm2_n1_p8_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21146,7 +21146,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21187,7 +21187,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21272,7 +21272,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21313,7 +21313,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21390,7 +21390,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21431,7 +21431,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21506,7 +21506,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dhires_spr(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21547,7 +21547,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21608,7 +21608,7 @@ static void lts_aga_fm2_n0_p2_ishres_dhires(void) loaded_pix = getbpl2_64(); loaded_pixs[2] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -21637,7 +21637,7 @@ static void lts_aga_fm2_n0_p2_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21696,7 +21696,7 @@ static void lts_aga_fm2_n1_p2_ishres_dhires(void) loaded_pix = getbpl2_64(); loaded_pixs[2] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -21725,7 +21725,7 @@ static void lts_aga_fm2_n1_p2_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21788,7 +21788,7 @@ static void lts_aga_fm2_dpf0_p2_ishres_dhires(void) loaded_pix = getbpl2_64(); loaded_pixs[2] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -21817,7 +21817,7 @@ static void lts_aga_fm2_dpf0_p2_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21886,7 +21886,7 @@ static void lts_aga_fm2_dpf1_p2_ishres_dhires(void) loaded_pix = getbpl2_64(); loaded_pixs[2] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -21915,7 +21915,7 @@ static void lts_aga_fm2_dpf1_p2_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21992,7 +21992,7 @@ static void lts_aga_fm2_n0_p4_ishres_dhires(void) loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -22021,7 +22021,7 @@ static void lts_aga_fm2_n0_p4_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22080,7 +22080,7 @@ static void lts_aga_fm2_n1_p4_ishres_dhires(void) loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -22109,7 +22109,7 @@ static void lts_aga_fm2_n1_p4_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22172,7 +22172,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dhires(void) loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -22201,7 +22201,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22270,7 +22270,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dhires(void) loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -22299,7 +22299,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22376,7 +22376,7 @@ static void lts_aga_fm2_n0_p6_ishres_dhires(void) loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -22405,7 +22405,7 @@ static void lts_aga_fm2_n0_p6_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22464,7 +22464,7 @@ static void lts_aga_fm2_n1_p6_ishres_dhires(void) loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -22493,7 +22493,7 @@ static void lts_aga_fm2_n1_p6_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22556,7 +22556,7 @@ static void lts_aga_fm2_dpf0_p6_ishres_dhires(void) loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -22585,7 +22585,7 @@ static void lts_aga_fm2_dpf0_p6_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22654,7 +22654,7 @@ static void lts_aga_fm2_dpf1_p6_ishres_dhires(void) loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -22683,7 +22683,7 @@ static void lts_aga_fm2_dpf1_p6_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22748,7 +22748,7 @@ static void lts_aga_fm2_ehb0_p6_ishres_dhires(void) loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -22777,7 +22777,7 @@ static void lts_aga_fm2_ehb0_p6_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22848,7 +22848,7 @@ static void lts_aga_fm2_ehb1_p6_ishres_dhires(void) loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -22877,7 +22877,7 @@ static void lts_aga_fm2_ehb1_p6_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22960,7 +22960,7 @@ static void lts_aga_fm2_ham0_p6_ishres_dhires(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -22989,7 +22989,7 @@ static void lts_aga_fm2_ham0_p6_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23084,7 +23084,7 @@ static void lts_aga_fm2_ham1_p6_ishres_dhires(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -23113,7 +23113,7 @@ static void lts_aga_fm2_ham1_p6_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23168,7 +23168,7 @@ static void lts_aga_fm2_kehb0_p6_ishres_dhires(void) loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -23197,7 +23197,7 @@ static void lts_aga_fm2_kehb0_p6_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23258,7 +23258,7 @@ static void lts_aga_fm2_kehb1_p6_ishres_dhires(void) loaded_pix = getbpl6_64(); loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -23287,7 +23287,7 @@ static void lts_aga_fm2_kehb1_p6_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23340,7 +23340,7 @@ static void lts_aga_fm2_n0_p8_ishres_dhires(void) loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -23369,7 +23369,7 @@ static void lts_aga_fm2_n0_p8_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23428,7 +23428,7 @@ static void lts_aga_fm2_n1_p8_ishres_dhires(void) loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -23457,7 +23457,7 @@ static void lts_aga_fm2_n1_p8_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23520,7 +23520,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dhires(void) loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -23549,7 +23549,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23618,7 +23618,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dhires(void) loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -23647,7 +23647,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23738,7 +23738,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dhires(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -23767,7 +23767,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23862,7 +23862,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dhires(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][2] = dpix_val2; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -23891,7 +23891,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23970,7 +23970,7 @@ static void lts_aga_fm2_n0_p2_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24011,7 +24011,7 @@ static void lts_aga_fm2_n0_p2_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24088,7 +24088,7 @@ static void lts_aga_fm2_n1_p2_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24129,7 +24129,7 @@ static void lts_aga_fm2_n1_p2_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24210,7 +24210,7 @@ static void lts_aga_fm2_dpf0_p2_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24251,7 +24251,7 @@ static void lts_aga_fm2_dpf0_p2_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24338,7 +24338,7 @@ static void lts_aga_fm2_dpf1_p2_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl2_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24379,7 +24379,7 @@ static void lts_aga_fm2_dpf1_p2_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24474,7 +24474,7 @@ static void lts_aga_fm2_n0_p4_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24515,7 +24515,7 @@ static void lts_aga_fm2_n0_p4_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24592,7 +24592,7 @@ static void lts_aga_fm2_n1_p4_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24633,7 +24633,7 @@ static void lts_aga_fm2_n1_p4_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24714,7 +24714,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24755,7 +24755,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24842,7 +24842,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24883,7 +24883,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24978,7 +24978,7 @@ static void lts_aga_fm2_n0_p6_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25019,7 +25019,7 @@ static void lts_aga_fm2_n0_p6_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25096,7 +25096,7 @@ static void lts_aga_fm2_n1_p6_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25137,7 +25137,7 @@ static void lts_aga_fm2_n1_p6_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25218,7 +25218,7 @@ static void lts_aga_fm2_dpf0_p6_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25259,7 +25259,7 @@ static void lts_aga_fm2_dpf0_p6_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25346,7 +25346,7 @@ static void lts_aga_fm2_dpf1_p6_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25387,7 +25387,7 @@ static void lts_aga_fm2_dpf1_p6_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25470,7 +25470,7 @@ static void lts_aga_fm2_ehb0_p6_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25511,7 +25511,7 @@ static void lts_aga_fm2_ehb0_p6_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25600,7 +25600,7 @@ static void lts_aga_fm2_ehb1_p6_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25641,7 +25641,7 @@ static void lts_aga_fm2_ehb1_p6_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25742,7 +25742,7 @@ static void lts_aga_fm2_ham0_p6_ishres_dhires_spr(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25783,7 +25783,7 @@ static void lts_aga_fm2_ham0_p6_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25896,7 +25896,7 @@ static void lts_aga_fm2_ham1_p6_ishres_dhires_spr(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25937,7 +25937,7 @@ static void lts_aga_fm2_ham1_p6_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26010,7 +26010,7 @@ static void lts_aga_fm2_kehb0_p6_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26051,7 +26051,7 @@ static void lts_aga_fm2_kehb0_p6_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26130,7 +26130,7 @@ static void lts_aga_fm2_kehb1_p6_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl6_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26171,7 +26171,7 @@ static void lts_aga_fm2_kehb1_p6_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26242,7 +26242,7 @@ static void lts_aga_fm2_n0_p8_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26283,7 +26283,7 @@ static void lts_aga_fm2_n0_p8_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26360,7 +26360,7 @@ static void lts_aga_fm2_n1_p8_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26401,7 +26401,7 @@ static void lts_aga_fm2_n1_p8_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26482,7 +26482,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26523,7 +26523,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26610,7 +26610,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dhires_spr(void) } loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26651,7 +26651,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26760,7 +26760,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dhires_spr(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26801,7 +26801,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26914,7 +26914,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dhires_spr(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26955,7 +26955,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27072,7 +27072,7 @@ static void lts_aga_fm2_n0_p2_ilores_dshres(void) loaded_pix = getbpl2_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -27119,7 +27119,7 @@ static void lts_aga_fm2_n0_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27272,7 +27272,7 @@ static void lts_aga_fm2_n1_p2_ilores_dshres(void) loaded_pix = getbpl2_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -27319,7 +27319,7 @@ static void lts_aga_fm2_n1_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27448,7 +27448,7 @@ static void lts_aga_fm2_dpf0_p2_ilores_dshres(void) loaded_pix = getbpl2_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -27495,7 +27495,7 @@ static void lts_aga_fm2_dpf0_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27668,7 +27668,7 @@ static void lts_aga_fm2_dpf1_p2_ilores_dshres(void) loaded_pix = getbpl2_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -27715,7 +27715,7 @@ static void lts_aga_fm2_dpf1_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27848,7 +27848,7 @@ static void lts_aga_fm2_n0_p4_ilores_dshres(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -27895,7 +27895,7 @@ static void lts_aga_fm2_n0_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28048,7 +28048,7 @@ static void lts_aga_fm2_n1_p4_ilores_dshres(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -28095,7 +28095,7 @@ static void lts_aga_fm2_n1_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28224,7 +28224,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dshres(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -28271,7 +28271,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28444,7 +28444,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dshres(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -28491,7 +28491,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28624,7 +28624,7 @@ static void lts_aga_fm2_n0_p6_ilores_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -28671,7 +28671,7 @@ static void lts_aga_fm2_n0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -28824,7 +28824,7 @@ static void lts_aga_fm2_n1_p6_ilores_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -28871,7 +28871,7 @@ static void lts_aga_fm2_n1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29000,7 +29000,7 @@ static void lts_aga_fm2_dpf0_p6_ilores_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -29047,7 +29047,7 @@ static void lts_aga_fm2_dpf0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29220,7 +29220,7 @@ static void lts_aga_fm2_dpf1_p6_ilores_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -29267,7 +29267,7 @@ static void lts_aga_fm2_dpf1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29400,7 +29400,7 @@ static void lts_aga_fm2_ehb0_p6_ilores_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -29447,7 +29447,7 @@ static void lts_aga_fm2_ehb0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29624,7 +29624,7 @@ static void lts_aga_fm2_ehb1_p6_ilores_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -29671,7 +29671,7 @@ static void lts_aga_fm2_ehb1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29780,7 +29780,7 @@ static void lts_aga_fm2_ham0_p6_ilores_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -29827,7 +29827,7 @@ static void lts_aga_fm2_ham0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -29980,7 +29980,7 @@ static void lts_aga_fm2_ham1_p6_ilores_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -30027,7 +30027,7 @@ static void lts_aga_fm2_ham1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -30140,7 +30140,7 @@ static void lts_aga_fm2_kehb0_p6_ilores_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -30187,7 +30187,7 @@ static void lts_aga_fm2_kehb0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -30344,7 +30344,7 @@ static void lts_aga_fm2_kehb1_p6_ilores_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -30391,7 +30391,7 @@ static void lts_aga_fm2_kehb1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -30500,7 +30500,7 @@ static void lts_aga_fm2_n0_p8_ilores_dshres(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -30547,7 +30547,7 @@ static void lts_aga_fm2_n0_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -30700,7 +30700,7 @@ static void lts_aga_fm2_n1_p8_ilores_dshres(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -30747,7 +30747,7 @@ static void lts_aga_fm2_n1_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -30876,7 +30876,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dshres(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -30923,7 +30923,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -31096,7 +31096,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dshres(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -31143,7 +31143,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -31260,7 +31260,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dshres(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -31307,7 +31307,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -31460,7 +31460,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dshres(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -31507,7 +31507,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -31660,7 +31660,7 @@ static void lts_aga_fm2_n0_p2_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -31731,7 +31731,7 @@ static void lts_aga_fm2_n0_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -31920,7 +31920,7 @@ static void lts_aga_fm2_n1_p2_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -31991,7 +31991,7 @@ static void lts_aga_fm2_n1_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -32156,7 +32156,7 @@ static void lts_aga_fm2_dpf0_p2_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -32227,7 +32227,7 @@ static void lts_aga_fm2_dpf0_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -32436,7 +32436,7 @@ static void lts_aga_fm2_dpf1_p2_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -32507,7 +32507,7 @@ static void lts_aga_fm2_dpf1_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -32676,7 +32676,7 @@ static void lts_aga_fm2_n0_p4_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -32747,7 +32747,7 @@ static void lts_aga_fm2_n0_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -32936,7 +32936,7 @@ static void lts_aga_fm2_n1_p4_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -33007,7 +33007,7 @@ static void lts_aga_fm2_n1_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -33172,7 +33172,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -33243,7 +33243,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -33452,7 +33452,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -33523,7 +33523,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -33692,7 +33692,7 @@ static void lts_aga_fm2_n0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -33763,7 +33763,7 @@ static void lts_aga_fm2_n0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -33952,7 +33952,7 @@ static void lts_aga_fm2_n1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -34023,7 +34023,7 @@ static void lts_aga_fm2_n1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -34188,7 +34188,7 @@ static void lts_aga_fm2_dpf0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -34259,7 +34259,7 @@ static void lts_aga_fm2_dpf0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -34468,7 +34468,7 @@ static void lts_aga_fm2_dpf1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -34539,7 +34539,7 @@ static void lts_aga_fm2_dpf1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -34708,7 +34708,7 @@ static void lts_aga_fm2_ehb0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -34779,7 +34779,7 @@ static void lts_aga_fm2_ehb0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -34992,7 +34992,7 @@ static void lts_aga_fm2_ehb1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -35063,7 +35063,7 @@ static void lts_aga_fm2_ehb1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -35208,7 +35208,7 @@ static void lts_aga_fm2_ham0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -35279,7 +35279,7 @@ static void lts_aga_fm2_ham0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -35468,7 +35468,7 @@ static void lts_aga_fm2_ham1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -35539,7 +35539,7 @@ static void lts_aga_fm2_ham1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -35688,7 +35688,7 @@ static void lts_aga_fm2_kehb0_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -35759,7 +35759,7 @@ static void lts_aga_fm2_kehb0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -35952,7 +35952,7 @@ static void lts_aga_fm2_kehb1_p6_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -36023,7 +36023,7 @@ static void lts_aga_fm2_kehb1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -36168,7 +36168,7 @@ static void lts_aga_fm2_n0_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -36239,7 +36239,7 @@ static void lts_aga_fm2_n0_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -36428,7 +36428,7 @@ static void lts_aga_fm2_n1_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -36499,7 +36499,7 @@ static void lts_aga_fm2_n1_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -36664,7 +36664,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -36735,7 +36735,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -36944,7 +36944,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -37015,7 +37015,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -37168,7 +37168,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -37239,7 +37239,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -37428,7 +37428,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -37499,7 +37499,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -37616,7 +37616,7 @@ static void lts_aga_fm2_n0_p2_ihires_dshres(void) loaded_pix = getbpl2_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -37663,7 +37663,7 @@ static void lts_aga_fm2_n0_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -37816,7 +37816,7 @@ static void lts_aga_fm2_n1_p2_ihires_dshres(void) loaded_pix = getbpl2_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -37863,7 +37863,7 @@ static void lts_aga_fm2_n1_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -37992,7 +37992,7 @@ static void lts_aga_fm2_dpf0_p2_ihires_dshres(void) loaded_pix = getbpl2_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -38039,7 +38039,7 @@ static void lts_aga_fm2_dpf0_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -38212,7 +38212,7 @@ static void lts_aga_fm2_dpf1_p2_ihires_dshres(void) loaded_pix = getbpl2_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -38259,7 +38259,7 @@ static void lts_aga_fm2_dpf1_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -38392,7 +38392,7 @@ static void lts_aga_fm2_n0_p4_ihires_dshres(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -38439,7 +38439,7 @@ static void lts_aga_fm2_n0_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -38592,7 +38592,7 @@ static void lts_aga_fm2_n1_p4_ihires_dshres(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -38639,7 +38639,7 @@ static void lts_aga_fm2_n1_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -38768,7 +38768,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dshres(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -38815,7 +38815,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -38988,7 +38988,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dshres(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -39035,7 +39035,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -39168,7 +39168,7 @@ static void lts_aga_fm2_n0_p6_ihires_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -39215,7 +39215,7 @@ static void lts_aga_fm2_n0_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -39368,7 +39368,7 @@ static void lts_aga_fm2_n1_p6_ihires_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -39415,7 +39415,7 @@ static void lts_aga_fm2_n1_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -39544,7 +39544,7 @@ static void lts_aga_fm2_dpf0_p6_ihires_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -39591,7 +39591,7 @@ static void lts_aga_fm2_dpf0_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -39764,7 +39764,7 @@ static void lts_aga_fm2_dpf1_p6_ihires_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -39811,7 +39811,7 @@ static void lts_aga_fm2_dpf1_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -39944,7 +39944,7 @@ static void lts_aga_fm2_ehb0_p6_ihires_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -39991,7 +39991,7 @@ static void lts_aga_fm2_ehb0_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -40168,7 +40168,7 @@ static void lts_aga_fm2_ehb1_p6_ihires_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -40215,7 +40215,7 @@ static void lts_aga_fm2_ehb1_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -40324,7 +40324,7 @@ static void lts_aga_fm2_ham0_p6_ihires_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -40371,7 +40371,7 @@ static void lts_aga_fm2_ham0_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -40524,7 +40524,7 @@ static void lts_aga_fm2_ham1_p6_ihires_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -40571,7 +40571,7 @@ static void lts_aga_fm2_ham1_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -40684,7 +40684,7 @@ static void lts_aga_fm2_kehb0_p6_ihires_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -40731,7 +40731,7 @@ static void lts_aga_fm2_kehb0_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -40888,7 +40888,7 @@ static void lts_aga_fm2_kehb1_p6_ihires_dshres(void) loaded_pix = getbpl6_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -40935,7 +40935,7 @@ static void lts_aga_fm2_kehb1_p6_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -41044,7 +41044,7 @@ static void lts_aga_fm2_n0_p8_ihires_dshres(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -41091,7 +41091,7 @@ static void lts_aga_fm2_n0_p8_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -41244,7 +41244,7 @@ static void lts_aga_fm2_n1_p8_ihires_dshres(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -41291,7 +41291,7 @@ static void lts_aga_fm2_n1_p8_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -41420,7 +41420,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dshres(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -41467,7 +41467,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -41640,7 +41640,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dshres(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -41687,7 +41687,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -41804,7 +41804,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dshres(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -41851,7 +41851,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -42004,7 +42004,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dshres(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -42051,7 +42051,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -42204,7 +42204,7 @@ static void lts_aga_fm2_n0_p2_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -42275,7 +42275,7 @@ static void lts_aga_fm2_n0_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -42464,7 +42464,7 @@ static void lts_aga_fm2_n1_p2_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -42535,7 +42535,7 @@ static void lts_aga_fm2_n1_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -42700,7 +42700,7 @@ static void lts_aga_fm2_dpf0_p2_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -42771,7 +42771,7 @@ static void lts_aga_fm2_dpf0_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -42980,7 +42980,7 @@ static void lts_aga_fm2_dpf1_p2_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -43051,7 +43051,7 @@ static void lts_aga_fm2_dpf1_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -43220,7 +43220,7 @@ static void lts_aga_fm2_n0_p4_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -43291,7 +43291,7 @@ static void lts_aga_fm2_n0_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -43480,7 +43480,7 @@ static void lts_aga_fm2_n1_p4_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -43551,7 +43551,7 @@ static void lts_aga_fm2_n1_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -43716,7 +43716,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -43787,7 +43787,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -43996,7 +43996,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -44067,7 +44067,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -44236,7 +44236,7 @@ static void lts_aga_fm2_n0_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -44307,7 +44307,7 @@ static void lts_aga_fm2_n0_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -44496,7 +44496,7 @@ static void lts_aga_fm2_n1_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -44567,7 +44567,7 @@ static void lts_aga_fm2_n1_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -44732,7 +44732,7 @@ static void lts_aga_fm2_dpf0_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -44803,7 +44803,7 @@ static void lts_aga_fm2_dpf0_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -45012,7 +45012,7 @@ static void lts_aga_fm2_dpf1_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -45083,7 +45083,7 @@ static void lts_aga_fm2_dpf1_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -45252,7 +45252,7 @@ static void lts_aga_fm2_ehb0_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -45323,7 +45323,7 @@ static void lts_aga_fm2_ehb0_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -45536,7 +45536,7 @@ static void lts_aga_fm2_ehb1_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -45607,7 +45607,7 @@ static void lts_aga_fm2_ehb1_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -45752,7 +45752,7 @@ static void lts_aga_fm2_ham0_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -45823,7 +45823,7 @@ static void lts_aga_fm2_ham0_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -46012,7 +46012,7 @@ static void lts_aga_fm2_ham1_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -46083,7 +46083,7 @@ static void lts_aga_fm2_ham1_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -46232,7 +46232,7 @@ static void lts_aga_fm2_kehb0_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -46303,7 +46303,7 @@ static void lts_aga_fm2_kehb0_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -46496,7 +46496,7 @@ static void lts_aga_fm2_kehb1_p6_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -46567,7 +46567,7 @@ static void lts_aga_fm2_kehb1_p6_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -46712,7 +46712,7 @@ static void lts_aga_fm2_n0_p8_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -46783,7 +46783,7 @@ static void lts_aga_fm2_n0_p8_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -46972,7 +46972,7 @@ static void lts_aga_fm2_n1_p8_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -47043,7 +47043,7 @@ static void lts_aga_fm2_n1_p8_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -47208,7 +47208,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -47279,7 +47279,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -47488,7 +47488,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -47559,7 +47559,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -47712,7 +47712,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -47783,7 +47783,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -47972,7 +47972,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -48043,7 +48043,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -48136,7 +48136,7 @@ static void lts_aga_fm2_n0_p2_ishres_dshres(void) } loaded_pix = getbpl2_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -48183,7 +48183,7 @@ static void lts_aga_fm2_n0_p2_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -48280,7 +48280,7 @@ static void lts_aga_fm2_n1_p2_ishres_dshres(void) } loaded_pix = getbpl2_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -48327,7 +48327,7 @@ static void lts_aga_fm2_n1_p2_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -48432,7 +48432,7 @@ static void lts_aga_fm2_dpf0_p2_ishres_dshres(void) } loaded_pix = getbpl2_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -48479,7 +48479,7 @@ static void lts_aga_fm2_dpf0_p2_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -48596,7 +48596,7 @@ static void lts_aga_fm2_dpf1_p2_ishres_dshres(void) } loaded_pix = getbpl2_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -48643,7 +48643,7 @@ static void lts_aga_fm2_dpf1_p2_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -48752,7 +48752,7 @@ static void lts_aga_fm2_n0_p4_ishres_dshres(void) } loaded_pix = getbpl4_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -48799,7 +48799,7 @@ static void lts_aga_fm2_n0_p4_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -48896,7 +48896,7 @@ static void lts_aga_fm2_n1_p4_ishres_dshres(void) } loaded_pix = getbpl4_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -48943,7 +48943,7 @@ static void lts_aga_fm2_n1_p4_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -49048,7 +49048,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dshres(void) } loaded_pix = getbpl4_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -49095,7 +49095,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -49212,7 +49212,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dshres(void) } loaded_pix = getbpl4_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -49259,7 +49259,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -49368,7 +49368,7 @@ static void lts_aga_fm2_n0_p6_ishres_dshres(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -49415,7 +49415,7 @@ static void lts_aga_fm2_n0_p6_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -49512,7 +49512,7 @@ static void lts_aga_fm2_n1_p6_ishres_dshres(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -49559,7 +49559,7 @@ static void lts_aga_fm2_n1_p6_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -49664,7 +49664,7 @@ static void lts_aga_fm2_dpf0_p6_ishres_dshres(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -49711,7 +49711,7 @@ static void lts_aga_fm2_dpf0_p6_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -49828,7 +49828,7 @@ static void lts_aga_fm2_dpf1_p6_ishres_dshres(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -49875,7 +49875,7 @@ static void lts_aga_fm2_dpf1_p6_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -49984,7 +49984,7 @@ static void lts_aga_fm2_ehb0_p6_ishres_dshres(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -50031,7 +50031,7 @@ static void lts_aga_fm2_ehb0_p6_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -50152,7 +50152,7 @@ static void lts_aga_fm2_ehb1_p6_ishres_dshres(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -50199,7 +50199,7 @@ static void lts_aga_fm2_ehb1_p6_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -50284,7 +50284,7 @@ static void lts_aga_fm2_ham0_p6_ishres_dshres(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -50331,7 +50331,7 @@ static void lts_aga_fm2_ham0_p6_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -50428,7 +50428,7 @@ static void lts_aga_fm2_ham1_p6_ishres_dshres(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -50475,7 +50475,7 @@ static void lts_aga_fm2_ham1_p6_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -50564,7 +50564,7 @@ static void lts_aga_fm2_kehb0_p6_ishres_dshres(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -50611,7 +50611,7 @@ static void lts_aga_fm2_kehb0_p6_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -50712,7 +50712,7 @@ static void lts_aga_fm2_kehb1_p6_ishres_dshres(void) } loaded_pix = getbpl6_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -50759,7 +50759,7 @@ static void lts_aga_fm2_kehb1_p6_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -50844,7 +50844,7 @@ static void lts_aga_fm2_n0_p8_ishres_dshres(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -50891,7 +50891,7 @@ static void lts_aga_fm2_n0_p8_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -50988,7 +50988,7 @@ static void lts_aga_fm2_n1_p8_ishres_dshres(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -51035,7 +51035,7 @@ static void lts_aga_fm2_n1_p8_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -51140,7 +51140,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dshres(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -51187,7 +51187,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -51304,7 +51304,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dshres(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -51351,7 +51351,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -51444,7 +51444,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dshres(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -51491,7 +51491,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -51588,7 +51588,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dshres(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -51635,7 +51635,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -51764,7 +51764,7 @@ static void lts_aga_fm2_n0_p2_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -51835,7 +51835,7 @@ static void lts_aga_fm2_n0_p2_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -51968,7 +51968,7 @@ static void lts_aga_fm2_n1_p2_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -52039,7 +52039,7 @@ static void lts_aga_fm2_n1_p2_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -52180,7 +52180,7 @@ static void lts_aga_fm2_dpf0_p2_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -52251,7 +52251,7 @@ static void lts_aga_fm2_dpf0_p2_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -52404,7 +52404,7 @@ static void lts_aga_fm2_dpf1_p2_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -52475,7 +52475,7 @@ static void lts_aga_fm2_dpf1_p2_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -52620,7 +52620,7 @@ static void lts_aga_fm2_n0_p4_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -52691,7 +52691,7 @@ static void lts_aga_fm2_n0_p4_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -52824,7 +52824,7 @@ static void lts_aga_fm2_n1_p4_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -52895,7 +52895,7 @@ static void lts_aga_fm2_n1_p4_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -53036,7 +53036,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -53107,7 +53107,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -53260,7 +53260,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -53331,7 +53331,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -53476,7 +53476,7 @@ static void lts_aga_fm2_n0_p6_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -53547,7 +53547,7 @@ static void lts_aga_fm2_n0_p6_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -53680,7 +53680,7 @@ static void lts_aga_fm2_n1_p6_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -53751,7 +53751,7 @@ static void lts_aga_fm2_n1_p6_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -53892,7 +53892,7 @@ static void lts_aga_fm2_dpf0_p6_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -53963,7 +53963,7 @@ static void lts_aga_fm2_dpf0_p6_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -54116,7 +54116,7 @@ static void lts_aga_fm2_dpf1_p6_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -54187,7 +54187,7 @@ static void lts_aga_fm2_dpf1_p6_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -54332,7 +54332,7 @@ static void lts_aga_fm2_ehb0_p6_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -54403,7 +54403,7 @@ static void lts_aga_fm2_ehb0_p6_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -54560,7 +54560,7 @@ static void lts_aga_fm2_ehb1_p6_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -54631,7 +54631,7 @@ static void lts_aga_fm2_ehb1_p6_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -54752,7 +54752,7 @@ static void lts_aga_fm2_ham0_p6_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -54823,7 +54823,7 @@ static void lts_aga_fm2_ham0_p6_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -54956,7 +54956,7 @@ static void lts_aga_fm2_ham1_p6_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -55027,7 +55027,7 @@ static void lts_aga_fm2_ham1_p6_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -55152,7 +55152,7 @@ static void lts_aga_fm2_kehb0_p6_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -55223,7 +55223,7 @@ static void lts_aga_fm2_kehb0_p6_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -55360,7 +55360,7 @@ static void lts_aga_fm2_kehb1_p6_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -55431,7 +55431,7 @@ static void lts_aga_fm2_kehb1_p6_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -55552,7 +55552,7 @@ static void lts_aga_fm2_n0_p8_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -55623,7 +55623,7 @@ static void lts_aga_fm2_n0_p8_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -55756,7 +55756,7 @@ static void lts_aga_fm2_n1_p8_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -55827,7 +55827,7 @@ static void lts_aga_fm2_n1_p8_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -55968,7 +55968,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -56039,7 +56039,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -56192,7 +56192,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -56263,7 +56263,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -56392,7 +56392,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -56463,7 +56463,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -56596,7 +56596,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dshres_spr(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -56667,7 +56667,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -58841,4 +58841,5 @@ static LINETOSRC_FUNC linetoscr_aga_funcs[] = { lts_aga_fm2_ham1_p8_ishres_dshres_spr, lts_aga_fm2_kehb0_p8_ishres_dshres_spr, lts_aga_fm2_kehb1_p8_ishres_dshres_spr, + NULL }; diff --git a/linetoscr_aga_fm2_genlock.cpp b/linetoscr_aga_fm2_genlock.cpp index 140506d2..2bbf3071 100644 --- a/linetoscr_aga_fm2_genlock.cpp +++ b/linetoscr_aga_fm2_genlock.cpp @@ -36,7 +36,7 @@ static void lts_aga_fm2_n0_p4_ilores_dlores_genlock(void) } loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -58,7 +58,7 @@ static void lts_aga_fm2_n0_p4_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -98,7 +98,7 @@ static void lts_aga_fm2_n1_p4_ilores_dlores_genlock(void) } loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -120,7 +120,7 @@ static void lts_aga_fm2_n1_p4_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -162,7 +162,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dlores_genlock(void) } loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -184,7 +184,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -229,7 +229,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dlores_genlock(void) } loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -251,7 +251,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -312,7 +312,7 @@ static void lts_aga_fm2_n0_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -334,7 +334,7 @@ static void lts_aga_fm2_n0_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -374,7 +374,7 @@ static void lts_aga_fm2_n1_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -396,7 +396,7 @@ static void lts_aga_fm2_n1_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -438,7 +438,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -460,7 +460,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -505,7 +505,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -527,7 +527,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -572,7 +572,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -594,7 +594,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -634,7 +634,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dlores_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -656,7 +656,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -710,7 +710,7 @@ static void lts_aga_fm2_n0_p4_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -740,7 +740,7 @@ static void lts_aga_fm2_n0_p4_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -789,7 +789,7 @@ static void lts_aga_fm2_n1_p4_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -819,7 +819,7 @@ static void lts_aga_fm2_n1_p4_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -870,7 +870,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -900,7 +900,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -954,7 +954,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -984,7 +984,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1054,7 +1054,7 @@ static void lts_aga_fm2_n0_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1084,7 +1084,7 @@ static void lts_aga_fm2_n0_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1133,7 +1133,7 @@ static void lts_aga_fm2_n1_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1163,7 +1163,7 @@ static void lts_aga_fm2_n1_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1214,7 +1214,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1244,7 +1244,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1298,7 +1298,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1328,7 +1328,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1382,7 +1382,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1412,7 +1412,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1461,7 +1461,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dlores_spr_genlock(void) } } loaded_pixs[0] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1491,7 +1491,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1537,7 +1537,7 @@ static void lts_aga_fm2_n0_p4_ihires_dlores_genlock(void) loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1559,7 +1559,7 @@ static void lts_aga_fm2_n0_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1600,7 +1600,7 @@ static void lts_aga_fm2_n1_p4_ihires_dlores_genlock(void) loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1622,7 +1622,7 @@ static void lts_aga_fm2_n1_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1665,7 +1665,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dlores_genlock(void) loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1687,7 +1687,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1733,7 +1733,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dlores_genlock(void) loaded_pix = getbpl4_64(); loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1755,7 +1755,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1817,7 +1817,7 @@ static void lts_aga_fm2_n0_p8_ihires_dlores_genlock(void) loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1839,7 +1839,7 @@ static void lts_aga_fm2_n0_p8_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1880,7 +1880,7 @@ static void lts_aga_fm2_n1_p8_ihires_dlores_genlock(void) loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1902,7 +1902,7 @@ static void lts_aga_fm2_n1_p8_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1945,7 +1945,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dlores_genlock(void) loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -1967,7 +1967,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2013,7 +2013,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dlores_genlock(void) loaded_pix = getbpl8_64(); loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -2035,7 +2035,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2097,7 +2097,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dlores_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -2119,7 +2119,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2179,7 +2179,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dlores_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -2201,7 +2201,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2256,7 +2256,7 @@ static void lts_aga_fm2_n0_p4_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2286,7 +2286,7 @@ static void lts_aga_fm2_n0_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2336,7 +2336,7 @@ static void lts_aga_fm2_n1_p4_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2366,7 +2366,7 @@ static void lts_aga_fm2_n1_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2418,7 +2418,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2448,7 +2448,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2503,7 +2503,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2533,7 +2533,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2604,7 +2604,7 @@ static void lts_aga_fm2_n0_p8_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2634,7 +2634,7 @@ static void lts_aga_fm2_n0_p8_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2684,7 +2684,7 @@ static void lts_aga_fm2_n1_p8_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2714,7 +2714,7 @@ static void lts_aga_fm2_n1_p8_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2766,7 +2766,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2796,7 +2796,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2851,7 +2851,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dlores_spr_genlock(void) } loaded_pixs[0] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2881,7 +2881,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2952,7 +2952,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dlores_spr_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2982,7 +2982,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3051,7 +3051,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dlores_spr_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[1] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3081,7 +3081,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3129,7 +3129,7 @@ static void lts_aga_fm2_n0_p4_ishres_dlores_genlock(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3151,7 +3151,7 @@ static void lts_aga_fm2_n0_p4_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3194,7 +3194,7 @@ static void lts_aga_fm2_n1_p4_ishres_dlores_genlock(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3216,7 +3216,7 @@ static void lts_aga_fm2_n1_p4_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3261,7 +3261,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dlores_genlock(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3283,7 +3283,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3331,7 +3331,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dlores_genlock(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3353,7 +3353,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3417,7 +3417,7 @@ static void lts_aga_fm2_n0_p8_ishres_dlores_genlock(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3439,7 +3439,7 @@ static void lts_aga_fm2_n0_p8_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3482,7 +3482,7 @@ static void lts_aga_fm2_n1_p8_ishres_dlores_genlock(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3504,7 +3504,7 @@ static void lts_aga_fm2_n1_p8_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3549,7 +3549,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dlores_genlock(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3571,7 +3571,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3619,7 +3619,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dlores_genlock(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3641,7 +3641,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3737,7 +3737,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dlores_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3759,7 +3759,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3859,7 +3859,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dlores_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = dtbuf[h ^ lol][0]; @@ -3881,7 +3881,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3938,7 +3938,7 @@ static void lts_aga_fm2_n0_p4_ishres_dlores_spr_genlock(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3968,7 +3968,7 @@ static void lts_aga_fm2_n0_p4_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4020,7 +4020,7 @@ static void lts_aga_fm2_n1_p4_ishres_dlores_spr_genlock(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4050,7 +4050,7 @@ static void lts_aga_fm2_n1_p4_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4104,7 +4104,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dlores_spr_genlock(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4134,7 +4134,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4191,7 +4191,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dlores_spr_genlock(void) shiftbpl4_64(); shiftbpl4_64(); shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4221,7 +4221,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4294,7 +4294,7 @@ static void lts_aga_fm2_n0_p8_ishres_dlores_spr_genlock(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4324,7 +4324,7 @@ static void lts_aga_fm2_n0_p8_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4376,7 +4376,7 @@ static void lts_aga_fm2_n1_p8_ishres_dlores_spr_genlock(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4406,7 +4406,7 @@ static void lts_aga_fm2_n1_p8_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4460,7 +4460,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dlores_spr_genlock(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4490,7 +4490,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4547,7 +4547,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dlores_spr_genlock(void) shiftbpl8_64(); shiftbpl8_64(); shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4577,7 +4577,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4682,7 +4682,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dlores_spr_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4712,7 +4712,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4821,7 +4821,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dlores_spr_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4851,7 +4851,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4928,7 +4928,7 @@ static void lts_aga_fm2_n0_p4_ilores_dhires_genlock(void) loaded_pix = getbpl4_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -4961,7 +4961,7 @@ static void lts_aga_fm2_n0_p4_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5052,7 +5052,7 @@ static void lts_aga_fm2_n1_p4_ilores_dhires_genlock(void) loaded_pix = getbpl4_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5085,7 +5085,7 @@ static void lts_aga_fm2_n1_p4_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5164,7 +5164,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dhires_genlock(void) loaded_pix = getbpl4_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5197,7 +5197,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5298,7 +5298,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dhires_genlock(void) loaded_pix = getbpl4_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5331,7 +5331,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5424,7 +5424,7 @@ static void lts_aga_fm2_n0_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5457,7 +5457,7 @@ static void lts_aga_fm2_n0_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5548,7 +5548,7 @@ static void lts_aga_fm2_n1_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5581,7 +5581,7 @@ static void lts_aga_fm2_n1_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5660,7 +5660,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5693,7 +5693,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5794,7 +5794,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5827,7 +5827,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5904,7 +5904,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -5937,7 +5937,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6028,7 +6028,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dhires_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -6061,7 +6061,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6156,7 +6156,7 @@ static void lts_aga_fm2_n0_p4_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6205,7 +6205,7 @@ static void lts_aga_fm2_n0_p4_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6314,7 +6314,7 @@ static void lts_aga_fm2_n1_p4_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6363,7 +6363,7 @@ static void lts_aga_fm2_n1_p4_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6460,7 +6460,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6509,7 +6509,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6628,7 +6628,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6677,7 +6677,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6788,7 +6788,7 @@ static void lts_aga_fm2_n0_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6837,7 +6837,7 @@ static void lts_aga_fm2_n0_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6946,7 +6946,7 @@ static void lts_aga_fm2_n1_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6995,7 +6995,7 @@ static void lts_aga_fm2_n1_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7092,7 +7092,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7141,7 +7141,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7260,7 +7260,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7309,7 +7309,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7404,7 +7404,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7453,7 +7453,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7562,7 +7562,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7611,7 +7611,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7676,7 +7676,7 @@ static void lts_aga_fm2_n0_p4_ihires_dhires_genlock(void) } loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -7709,7 +7709,7 @@ static void lts_aga_fm2_n0_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7772,7 +7772,7 @@ static void lts_aga_fm2_n1_p4_ihires_dhires_genlock(void) } loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -7805,7 +7805,7 @@ static void lts_aga_fm2_n1_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7872,7 +7872,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dhires_genlock(void) } loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -7905,7 +7905,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7978,7 +7978,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dhires_genlock(void) } loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -8011,7 +8011,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8092,7 +8092,7 @@ static void lts_aga_fm2_n0_p8_ihires_dhires_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -8125,7 +8125,7 @@ static void lts_aga_fm2_n0_p8_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8188,7 +8188,7 @@ static void lts_aga_fm2_n1_p8_ihires_dhires_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -8221,7 +8221,7 @@ static void lts_aga_fm2_n1_p8_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8288,7 +8288,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dhires_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -8321,7 +8321,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8394,7 +8394,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dhires_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -8427,7 +8427,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8492,7 +8492,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dhires_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -8525,7 +8525,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8588,7 +8588,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dhires_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -8621,7 +8621,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8704,7 +8704,7 @@ static void lts_aga_fm2_n0_p4_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8753,7 +8753,7 @@ static void lts_aga_fm2_n0_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8834,7 +8834,7 @@ static void lts_aga_fm2_n1_p4_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8883,7 +8883,7 @@ static void lts_aga_fm2_n1_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8968,7 +8968,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9017,7 +9017,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9108,7 +9108,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9157,7 +9157,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9256,7 +9256,7 @@ static void lts_aga_fm2_n0_p8_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9305,7 +9305,7 @@ static void lts_aga_fm2_n0_p8_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9386,7 +9386,7 @@ static void lts_aga_fm2_n1_p8_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9435,7 +9435,7 @@ static void lts_aga_fm2_n1_p8_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9520,7 +9520,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9569,7 +9569,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9660,7 +9660,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9709,7 +9709,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9792,7 +9792,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9841,7 +9841,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9922,7 +9922,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dhires_spr_genlock(void) } } loaded_pixs[2] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9971,7 +9971,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10038,7 +10038,7 @@ static void lts_aga_fm2_n0_p4_ishres_dhires_genlock(void) loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -10071,7 +10071,7 @@ static void lts_aga_fm2_n0_p4_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10136,7 +10136,7 @@ static void lts_aga_fm2_n1_p4_ishres_dhires_genlock(void) loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -10169,7 +10169,7 @@ static void lts_aga_fm2_n1_p4_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10238,7 +10238,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dhires_genlock(void) loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -10271,7 +10271,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10346,7 +10346,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dhires_genlock(void) loaded_pix = getbpl4_64(); loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -10379,7 +10379,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10462,7 +10462,7 @@ static void lts_aga_fm2_n0_p8_ishres_dhires_genlock(void) loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -10495,7 +10495,7 @@ static void lts_aga_fm2_n0_p8_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10560,7 +10560,7 @@ static void lts_aga_fm2_n1_p8_ishres_dhires_genlock(void) loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -10593,7 +10593,7 @@ static void lts_aga_fm2_n1_p8_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10662,7 +10662,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dhires_genlock(void) loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -10695,7 +10695,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10770,7 +10770,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dhires_genlock(void) loaded_pix = getbpl8_64(); loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -10803,7 +10803,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10902,7 +10902,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dhires_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -10935,7 +10935,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11038,7 +11038,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dhires_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][2] = dpix_val2; @@ -11071,7 +11071,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11156,7 +11156,7 @@ static void lts_aga_fm2_n0_p4_ishres_dhires_spr_genlock(void) } loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11205,7 +11205,7 @@ static void lts_aga_fm2_n0_p4_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11288,7 +11288,7 @@ static void lts_aga_fm2_n1_p4_ishres_dhires_spr_genlock(void) } loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11337,7 +11337,7 @@ static void lts_aga_fm2_n1_p4_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11424,7 +11424,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dhires_spr_genlock(void) } loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11473,7 +11473,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11566,7 +11566,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dhires_spr_genlock(void) } loaded_pixs[2] = loaded_pix; shiftbpl4_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11615,7 +11615,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11716,7 +11716,7 @@ static void lts_aga_fm2_n0_p8_ishres_dhires_spr_genlock(void) } loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11765,7 +11765,7 @@ static void lts_aga_fm2_n0_p8_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11848,7 +11848,7 @@ static void lts_aga_fm2_n1_p8_ishres_dhires_spr_genlock(void) } loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11897,7 +11897,7 @@ static void lts_aga_fm2_n1_p8_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11984,7 +11984,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dhires_spr_genlock(void) } loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12033,7 +12033,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12126,7 +12126,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dhires_spr_genlock(void) } loaded_pixs[2] = loaded_pix; shiftbpl8_64(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12175,7 +12175,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12292,7 +12292,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dhires_spr_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12341,7 +12341,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12462,7 +12462,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dhires_spr_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12511,7 +12511,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12640,7 +12640,7 @@ static void lts_aga_fm2_n0_p4_ilores_dshres_genlock(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -12695,7 +12695,7 @@ static void lts_aga_fm2_n0_p4_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12860,7 +12860,7 @@ static void lts_aga_fm2_n1_p4_ilores_dshres_genlock(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -12915,7 +12915,7 @@ static void lts_aga_fm2_n1_p4_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13056,7 +13056,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dshres_genlock(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -13111,7 +13111,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13296,7 +13296,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dshres_genlock(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -13351,7 +13351,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13496,7 +13496,7 @@ static void lts_aga_fm2_n0_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -13551,7 +13551,7 @@ static void lts_aga_fm2_n0_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13716,7 +13716,7 @@ static void lts_aga_fm2_n1_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -13771,7 +13771,7 @@ static void lts_aga_fm2_n1_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13912,7 +13912,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -13967,7 +13967,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14152,7 +14152,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -14207,7 +14207,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14336,7 +14336,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -14391,7 +14391,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14556,7 +14556,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dshres_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -14611,7 +14611,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14776,7 +14776,7 @@ static void lts_aga_fm2_n0_p4_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14863,7 +14863,7 @@ static void lts_aga_fm2_n0_p4_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15064,7 +15064,7 @@ static void lts_aga_fm2_n1_p4_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15151,7 +15151,7 @@ static void lts_aga_fm2_n1_p4_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15328,7 +15328,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15415,7 +15415,7 @@ static void lts_aga_fm2_dpf0_p4_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15636,7 +15636,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15723,7 +15723,7 @@ static void lts_aga_fm2_dpf1_p4_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15904,7 +15904,7 @@ static void lts_aga_fm2_n0_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15991,7 +15991,7 @@ static void lts_aga_fm2_n0_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16192,7 +16192,7 @@ static void lts_aga_fm2_n1_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16279,7 +16279,7 @@ static void lts_aga_fm2_n1_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16456,7 +16456,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16543,7 +16543,7 @@ static void lts_aga_fm2_dpf0_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16764,7 +16764,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16851,7 +16851,7 @@ static void lts_aga_fm2_dpf1_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17016,7 +17016,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17103,7 +17103,7 @@ static void lts_aga_fm2_ham0_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17304,7 +17304,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -17391,7 +17391,7 @@ static void lts_aga_fm2_ham1_p8_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17520,7 +17520,7 @@ static void lts_aga_fm2_n0_p4_ihires_dshres_genlock(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -17575,7 +17575,7 @@ static void lts_aga_fm2_n0_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17740,7 +17740,7 @@ static void lts_aga_fm2_n1_p4_ihires_dshres_genlock(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -17795,7 +17795,7 @@ static void lts_aga_fm2_n1_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -17936,7 +17936,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dshres_genlock(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -17991,7 +17991,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18176,7 +18176,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dshres_genlock(void) loaded_pix = getbpl4_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -18231,7 +18231,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18376,7 +18376,7 @@ static void lts_aga_fm2_n0_p8_ihires_dshres_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -18431,7 +18431,7 @@ static void lts_aga_fm2_n0_p8_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18596,7 +18596,7 @@ static void lts_aga_fm2_n1_p8_ihires_dshres_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -18651,7 +18651,7 @@ static void lts_aga_fm2_n1_p8_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -18792,7 +18792,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dshres_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -18847,7 +18847,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19032,7 +19032,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dshres_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -19087,7 +19087,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19216,7 +19216,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dshres_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -19271,7 +19271,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19436,7 +19436,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dshres_genlock(void) loaded_pix = getbpl8_64(); } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -19491,7 +19491,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19656,7 +19656,7 @@ static void lts_aga_fm2_n0_p4_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -19743,7 +19743,7 @@ static void lts_aga_fm2_n0_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -19944,7 +19944,7 @@ static void lts_aga_fm2_n1_p4_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20031,7 +20031,7 @@ static void lts_aga_fm2_n1_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20208,7 +20208,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20295,7 +20295,7 @@ static void lts_aga_fm2_dpf0_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20516,7 +20516,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20603,7 +20603,7 @@ static void lts_aga_fm2_dpf1_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -20784,7 +20784,7 @@ static void lts_aga_fm2_n0_p8_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -20871,7 +20871,7 @@ static void lts_aga_fm2_n0_p8_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21072,7 +21072,7 @@ static void lts_aga_fm2_n1_p8_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21159,7 +21159,7 @@ static void lts_aga_fm2_n1_p8_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21336,7 +21336,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21423,7 +21423,7 @@ static void lts_aga_fm2_dpf0_p8_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21644,7 +21644,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21731,7 +21731,7 @@ static void lts_aga_fm2_dpf1_p8_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -21896,7 +21896,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -21983,7 +21983,7 @@ static void lts_aga_fm2_ham0_p8_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22184,7 +22184,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -22271,7 +22271,7 @@ static void lts_aga_fm2_ham1_p8_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22376,7 +22376,7 @@ static void lts_aga_fm2_n0_p4_ishres_dshres_genlock(void) } loaded_pix = getbpl4_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -22431,7 +22431,7 @@ static void lts_aga_fm2_n0_p4_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22540,7 +22540,7 @@ static void lts_aga_fm2_n1_p4_ishres_dshres_genlock(void) } loaded_pix = getbpl4_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -22595,7 +22595,7 @@ static void lts_aga_fm2_n1_p4_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22712,7 +22712,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dshres_genlock(void) } loaded_pix = getbpl4_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -22767,7 +22767,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -22896,7 +22896,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dshres_genlock(void) } loaded_pix = getbpl4_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -22951,7 +22951,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23072,7 +23072,7 @@ static void lts_aga_fm2_n0_p8_ishres_dshres_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -23127,7 +23127,7 @@ static void lts_aga_fm2_n0_p8_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23236,7 +23236,7 @@ static void lts_aga_fm2_n1_p8_ishres_dshres_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -23291,7 +23291,7 @@ static void lts_aga_fm2_n1_p8_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23408,7 +23408,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dshres_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -23463,7 +23463,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23592,7 +23592,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dshres_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -23647,7 +23647,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23752,7 +23752,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dshres_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -23807,7 +23807,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -23916,7 +23916,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dshres_genlock(void) } loaded_pix = getbpl8_64(); loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -23971,7 +23971,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24112,7 +24112,7 @@ static void lts_aga_fm2_n0_p4_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24199,7 +24199,7 @@ static void lts_aga_fm2_n0_p4_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24344,7 +24344,7 @@ static void lts_aga_fm2_n1_p4_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24431,7 +24431,7 @@ static void lts_aga_fm2_n1_p4_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24584,7 +24584,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24671,7 +24671,7 @@ static void lts_aga_fm2_dpf0_p4_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -24836,7 +24836,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -24923,7 +24923,7 @@ static void lts_aga_fm2_dpf1_p4_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25080,7 +25080,7 @@ static void lts_aga_fm2_n0_p8_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25167,7 +25167,7 @@ static void lts_aga_fm2_n0_p8_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25312,7 +25312,7 @@ static void lts_aga_fm2_n1_p8_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25399,7 +25399,7 @@ static void lts_aga_fm2_n1_p8_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25552,7 +25552,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25639,7 +25639,7 @@ static void lts_aga_fm2_dpf0_p8_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -25804,7 +25804,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -25891,7 +25891,7 @@ static void lts_aga_fm2_dpf1_p8_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26032,7 +26032,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26119,7 +26119,7 @@ static void lts_aga_fm2_ham0_p8_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -26264,7 +26264,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dshres_spr_genlock(void) } } loaded_pixs[3] = loaded_pix; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -26351,7 +26351,7 @@ static void lts_aga_fm2_ham1_p8_ishres_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -27445,4 +27445,5 @@ static LINETOSRC_FUNC linetoscr_aga_genlock_funcs[] = { lts_aga_fm2_ham1_p8_ishres_dshres_spr_genlock, lts_aga_fm2_kehb0_p8_ishres_dshres_spr_genlock, lts_aga_fm2_kehb1_p8_ishres_dshres_spr_genlock, + NULL }; diff --git a/linetoscr_ecs_shres.cpp b/linetoscr_ecs_shres.cpp index ed8ad9b0..f26469b9 100644 --- a/linetoscr_ecs_shres.cpp +++ b/linetoscr_ecs_shres.cpp @@ -52,6 +52,7 @@ static void lts_ecs_shres_dlores(void) if (bpldat_copy[0] && (denise_hcounter & 3) == bplcon1_shift[0]) { copybpl2(); } + sprites_hidden = sprites_hidden2; #ifdef DEBUGGER *debug_dma_dhpos_odd = denise_hcounter; #endif @@ -60,7 +61,7 @@ static void lts_ecs_shres_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -131,7 +132,7 @@ static void lts_ecs_shres_dhires(void) dpix_val3 = dpix_val2; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { #ifdef DEBUGGER if (decode_specials_debug) { dpix_val0 = decode_denise_specials_debug(dpix_val0, cnt + 0); @@ -156,6 +157,7 @@ static void lts_ecs_shres_dhires(void) if (bpldat_copy[0] && (denise_hcounter & 3) == bplcon1_shift[0]) { copybpl2(); } + sprites_hidden = sprites_hidden2; #ifdef DEBUGGER *debug_dma_dhpos_odd = denise_hcounter; #endif @@ -164,7 +166,7 @@ static void lts_ecs_shres_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -235,7 +237,7 @@ static void lts_ecs_shres_dshres(void) dpix_val3 = dpix_val2; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { #ifdef DEBUGGER if (decode_specials_debug) { dpix_val0 = decode_denise_specials_debug(dpix_val0, cnt + 0); @@ -274,6 +276,7 @@ static void lts_ecs_shres_dshres(void) if (bpldat_copy[0] && (denise_hcounter & 3) == bplcon1_shift[0]) { copybpl2(); } + sprites_hidden = sprites_hidden2; #ifdef DEBUGGER *debug_dma_dhpos_odd = denise_hcounter; #endif @@ -282,7 +285,7 @@ static void lts_ecs_shres_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -291,6 +294,7 @@ static LINETOSRC_FUNC linetoscr_ecs_shres_funcs[] = { lts_ecs_shres_dlores, lts_ecs_shres_dhires, lts_ecs_shres_dshres, + NULL }; static void lts_ecs_shres_dlores_genlock(void) { @@ -344,6 +348,7 @@ static void lts_ecs_shres_dlores_genlock(void) if (bpldat_copy[0] && (denise_hcounter & 3) == bplcon1_shift[0]) { copybpl2(); } + sprites_hidden = sprites_hidden2; #ifdef DEBUGGER *debug_dma_dhpos_odd = denise_hcounter; #endif @@ -352,7 +357,7 @@ static void lts_ecs_shres_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -427,7 +432,7 @@ static void lts_ecs_shres_dhires_genlock(void) dpix_val3 = dpix_val2; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { #ifdef DEBUGGER if (decode_specials_debug) { dpix_val0 = decode_denise_specials_debug(dpix_val0, cnt + 0); @@ -454,6 +459,7 @@ static void lts_ecs_shres_dhires_genlock(void) if (bpldat_copy[0] && (denise_hcounter & 3) == bplcon1_shift[0]) { copybpl2(); } + sprites_hidden = sprites_hidden2; #ifdef DEBUGGER *debug_dma_dhpos_odd = denise_hcounter; #endif @@ -462,7 +468,7 @@ static void lts_ecs_shres_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -537,7 +543,7 @@ static void lts_ecs_shres_dshres_genlock(void) dpix_val3 = dpix_val2; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { #ifdef DEBUGGER if (decode_specials_debug) { dpix_val0 = decode_denise_specials_debug(dpix_val0, cnt + 0); @@ -580,6 +586,7 @@ static void lts_ecs_shres_dshres_genlock(void) if (bpldat_copy[0] && (denise_hcounter & 3) == bplcon1_shift[0]) { copybpl2(); } + sprites_hidden = sprites_hidden2; #ifdef DEBUGGER *debug_dma_dhpos_odd = denise_hcounter; #endif @@ -588,16 +595,14 @@ static void lts_ecs_shres_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } } static LINETOSRC_FUNC linetoscr_ecs_shres_genlock_funcs[] = { - lts_ecs_shres_dlores, - lts_ecs_shres_dhires, - lts_ecs_shres_dshres, lts_ecs_shres_dlores_genlock, lts_ecs_shres_dhires_genlock, lts_ecs_shres_dshres_genlock, + NULL }; diff --git a/linetoscr_ocs_ecs.cpp b/linetoscr_ocs_ecs.cpp index 80164331..db46fe0b 100644 --- a/linetoscr_ocs_ecs.cpp +++ b/linetoscr_ocs_ecs.cpp @@ -27,7 +27,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -52,7 +52,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -80,7 +80,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -108,7 +108,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -137,7 +137,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -162,7 +162,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -191,7 +191,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -219,7 +219,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -263,7 +263,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -288,7 +288,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -316,7 +316,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -344,7 +344,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -373,7 +373,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -398,7 +398,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -427,7 +427,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -455,7 +455,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -502,7 +502,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl5(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -527,7 +527,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -558,7 +558,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl5(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -586,7 +586,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -618,7 +618,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl5(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -643,7 +643,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -675,7 +675,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl5(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -703,7 +703,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -742,7 +742,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl5(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -767,7 +767,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -798,7 +798,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl5(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -826,7 +826,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -857,7 +857,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -882,7 +882,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -913,7 +913,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -941,7 +941,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -973,7 +973,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -998,7 +998,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1030,7 +1030,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -1058,7 +1058,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1094,7 +1094,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -1119,7 +1119,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1155,7 +1155,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -1183,7 +1183,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1214,7 +1214,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -1239,7 +1239,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1270,7 +1270,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -1298,7 +1298,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1335,7 +1335,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1366,7 +1366,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1403,7 +1403,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1437,7 +1437,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1475,7 +1475,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1506,7 +1506,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1544,7 +1544,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1578,7 +1578,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1631,7 +1631,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1662,7 +1662,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1699,7 +1699,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1733,7 +1733,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1771,7 +1771,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1802,7 +1802,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1840,7 +1840,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1874,7 +1874,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1930,7 +1930,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1961,7 +1961,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2001,7 +2001,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2035,7 +2035,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2076,7 +2076,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2107,7 +2107,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2148,7 +2148,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2182,7 +2182,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2230,7 +2230,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2261,7 +2261,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2301,7 +2301,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2335,7 +2335,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2375,7 +2375,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2406,7 +2406,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2446,7 +2446,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2480,7 +2480,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2521,7 +2521,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2552,7 +2552,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2593,7 +2593,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2627,7 +2627,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2672,7 +2672,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2703,7 +2703,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2748,7 +2748,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2782,7 +2782,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2822,7 +2822,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2853,7 +2853,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2893,7 +2893,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_spr(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2927,7 +2927,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2967,7 +2967,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dlores(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -2992,7 +2992,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3032,7 +3032,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dlores(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -3060,7 +3060,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3102,7 +3102,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dlores(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -3127,7 +3127,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3169,7 +3169,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dlores(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -3197,7 +3197,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3253,7 +3253,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -3278,7 +3278,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3318,7 +3318,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -3346,7 +3346,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3388,7 +3388,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -3413,7 +3413,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3455,7 +3455,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -3483,7 +3483,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3612,7 +3612,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dlores_spr(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3643,7 +3643,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3692,7 +3692,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dlores_spr(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3726,7 +3726,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3777,7 +3777,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dlores_spr(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3808,7 +3808,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3859,7 +3859,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dlores_spr(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3893,7 +3893,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3958,7 +3958,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_spr(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3989,7 +3989,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4038,7 +4038,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_spr(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4072,7 +4072,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4123,7 +4123,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_spr(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4154,7 +4154,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4205,7 +4205,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_spr(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4239,7 +4239,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4349,7 +4349,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dhires(void) shiftbpl2(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4385,7 +4385,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4415,7 +4415,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dhires(void) shiftbpl2(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4454,7 +4454,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4485,7 +4485,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dhires(void) shiftbpl2(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4521,7 +4521,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4552,7 +4552,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dhires(void) shiftbpl2(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4591,7 +4591,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4637,7 +4637,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dhires(void) shiftbpl4(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4673,7 +4673,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4703,7 +4703,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dhires(void) shiftbpl4(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4742,7 +4742,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4773,7 +4773,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dhires(void) shiftbpl4(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4809,7 +4809,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4840,7 +4840,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dhires(void) shiftbpl4(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4879,7 +4879,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4928,7 +4928,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dhires(void) shiftbpl5(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4964,7 +4964,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4997,7 +4997,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dhires(void) shiftbpl5(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5036,7 +5036,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5070,7 +5070,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dhires(void) shiftbpl5(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5106,7 +5106,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5140,7 +5140,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dhires(void) shiftbpl5(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5179,7 +5179,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5220,7 +5220,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dhires(void) shiftbpl5(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5256,7 +5256,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5289,7 +5289,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dhires(void) shiftbpl5(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5328,7 +5328,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5361,7 +5361,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5397,7 +5397,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5430,7 +5430,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5469,7 +5469,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5503,7 +5503,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5539,7 +5539,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5573,7 +5573,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5612,7 +5612,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5650,7 +5650,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5686,7 +5686,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5724,7 +5724,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5763,7 +5763,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5796,7 +5796,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5832,7 +5832,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5865,7 +5865,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -5904,7 +5904,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5943,7 +5943,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5986,7 +5986,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6025,7 +6025,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6071,7 +6071,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6111,7 +6111,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6154,7 +6154,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6194,7 +6194,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6240,7 +6240,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6295,7 +6295,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6338,7 +6338,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6377,7 +6377,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6423,7 +6423,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6463,7 +6463,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6506,7 +6506,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6546,7 +6546,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6592,7 +6592,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6650,7 +6650,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6693,7 +6693,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6735,7 +6735,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6781,7 +6781,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6824,7 +6824,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6867,7 +6867,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6910,7 +6910,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6956,7 +6956,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7006,7 +7006,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7049,7 +7049,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7091,7 +7091,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7137,7 +7137,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7179,7 +7179,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7222,7 +7222,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7264,7 +7264,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7310,7 +7310,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7353,7 +7353,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7396,7 +7396,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7439,7 +7439,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7485,7 +7485,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7532,7 +7532,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7575,7 +7575,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7622,7 +7622,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7668,7 +7668,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7710,7 +7710,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7753,7 +7753,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7795,7 +7795,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_spr(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7841,7 +7841,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7881,7 +7881,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dhires(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -7917,7 +7917,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7957,7 +7957,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dhires(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -7996,7 +7996,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8038,7 +8038,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dhires(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -8074,7 +8074,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8116,7 +8116,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dhires(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -8155,7 +8155,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8211,7 +8211,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -8247,7 +8247,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8287,7 +8287,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -8326,7 +8326,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8368,7 +8368,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -8404,7 +8404,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8446,7 +8446,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -8485,7 +8485,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8614,7 +8614,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dhires_spr(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8657,7 +8657,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8706,7 +8706,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dhires_spr(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8752,7 +8752,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8803,7 +8803,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dhires_spr(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8846,7 +8846,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8897,7 +8897,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dhires_spr(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8943,7 +8943,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9008,7 +9008,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_spr(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9051,7 +9051,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9100,7 +9100,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_spr(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9146,7 +9146,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9197,7 +9197,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_spr(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9240,7 +9240,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9291,7 +9291,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_spr(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9337,7 +9337,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9451,7 +9451,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -9509,7 +9509,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9543,7 +9543,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -9604,7 +9604,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9639,7 +9639,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -9697,7 +9697,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9732,7 +9732,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -9793,7 +9793,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9843,7 +9843,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -9901,7 +9901,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9935,7 +9935,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -9996,7 +9996,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10031,7 +10031,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -10089,7 +10089,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10124,7 +10124,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -10185,7 +10185,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10238,7 +10238,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -10296,7 +10296,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10333,7 +10333,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -10394,7 +10394,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10432,7 +10432,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -10490,7 +10490,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10528,7 +10528,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -10589,7 +10589,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10634,7 +10634,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -10692,7 +10692,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10729,7 +10729,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -10790,7 +10790,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10827,7 +10827,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -10885,7 +10885,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10922,7 +10922,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -10983,7 +10983,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11021,7 +11021,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -11079,7 +11079,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11117,7 +11117,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -11178,7 +11178,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11220,7 +11220,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -11278,7 +11278,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11320,7 +11320,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -11381,7 +11381,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11418,7 +11418,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -11476,7 +11476,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11513,7 +11513,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -11574,7 +11574,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11617,7 +11617,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11684,7 +11684,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11727,7 +11727,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11797,7 +11797,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11841,7 +11841,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11908,7 +11908,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11952,7 +11952,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12022,7 +12022,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12081,7 +12081,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12148,7 +12148,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12191,7 +12191,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12261,7 +12261,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12305,7 +12305,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12372,7 +12372,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12416,7 +12416,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12486,7 +12486,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12548,7 +12548,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12615,7 +12615,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12661,7 +12661,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12731,7 +12731,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12778,7 +12778,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12845,7 +12845,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12892,7 +12892,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12962,7 +12962,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13016,7 +13016,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13083,7 +13083,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13129,7 +13129,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13199,7 +13199,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13245,7 +13245,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13312,7 +13312,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13358,7 +13358,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13428,7 +13428,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13475,7 +13475,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13542,7 +13542,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13589,7 +13589,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13659,7 +13659,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13710,7 +13710,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13777,7 +13777,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13828,7 +13828,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13898,7 +13898,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13944,7 +13944,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14011,7 +14011,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14057,7 +14057,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_spr(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14127,7 +14127,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14171,7 +14171,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dshres(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -14229,7 +14229,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14273,7 +14273,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dshres(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -14334,7 +14334,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14380,7 +14380,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dshres(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -14438,7 +14438,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14484,7 +14484,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dshres(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -14545,7 +14545,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14605,7 +14605,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -14663,7 +14663,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14707,7 +14707,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -14768,7 +14768,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14814,7 +14814,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -14872,7 +14872,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14918,7 +14918,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -14979,7 +14979,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15112,7 +15112,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dshres_spr(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15179,7 +15179,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15232,7 +15232,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dshres_spr(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15302,7 +15302,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15357,7 +15357,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dshres_spr(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15424,7 +15424,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15479,7 +15479,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dshres_spr(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15549,7 +15549,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15618,7 +15618,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_spr(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15685,7 +15685,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15738,7 +15738,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_spr(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15808,7 +15808,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15863,7 +15863,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_spr(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15930,7 +15930,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15985,7 +15985,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_spr(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16055,7 +16055,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_spr(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16525,4 +16525,5 @@ static LINETOSRC_FUNC linetoscr_ecs_funcs[] = { lts_ecs_fm0_ehb1_p6_ihires_dshres_spr, lts_ecs_fm0_ham0_p6_ihires_dshres_spr, lts_ecs_fm0_ham1_p6_ihires_dshres_spr, + NULL }; diff --git a/linetoscr_ocs_ecs_genlock.cpp b/linetoscr_ocs_ecs_genlock.cpp index 1b5e7238..f8820200 100644 --- a/linetoscr_ocs_ecs_genlock.cpp +++ b/linetoscr_ocs_ecs_genlock.cpp @@ -33,7 +33,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -59,7 +59,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -93,7 +93,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -122,7 +122,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -157,7 +157,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -183,7 +183,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -218,7 +218,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -247,7 +247,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -286,7 +286,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -312,7 +312,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -351,7 +351,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -380,7 +380,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -414,7 +414,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -440,7 +440,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -474,7 +474,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -503,7 +503,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -546,7 +546,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_spr_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -580,7 +580,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -623,7 +623,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_spr_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -660,7 +660,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -704,7 +704,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_spr_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -738,7 +738,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -782,7 +782,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_spr_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -819,7 +819,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -867,7 +867,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_spr_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -901,7 +901,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -949,7 +949,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_spr_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -986,7 +986,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1029,7 +1029,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_spr_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1063,7 +1063,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1106,7 +1106,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_spr_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1143,7 +1143,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1189,7 +1189,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -1215,7 +1215,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1261,7 +1261,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -1290,7 +1290,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1338,7 +1338,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -1364,7 +1364,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1412,7 +1412,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -1441,7 +1441,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1512,7 +1512,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_spr_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1546,7 +1546,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1601,7 +1601,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_spr_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1638,7 +1638,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1695,7 +1695,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_spr_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1729,7 +1729,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1786,7 +1786,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_spr_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1823,7 +1823,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1876,7 +1876,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -1914,7 +1914,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1951,7 +1951,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -1992,7 +1992,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2030,7 +2030,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -2068,7 +2068,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2106,7 +2106,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -2147,7 +2147,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2189,7 +2189,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -2227,7 +2227,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2269,7 +2269,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -2310,7 +2310,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2347,7 +2347,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -2385,7 +2385,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2422,7 +2422,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -2463,7 +2463,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2509,7 +2509,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_spr_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2556,7 +2556,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2602,7 +2602,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_spr_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2652,7 +2652,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2699,7 +2699,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_spr_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2746,7 +2746,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2793,7 +2793,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_spr_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2843,7 +2843,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2894,7 +2894,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_spr_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2941,7 +2941,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2992,7 +2992,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_spr_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3042,7 +3042,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3088,7 +3088,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_spr_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3135,7 +3135,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3181,7 +3181,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_spr_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3231,7 +3231,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3277,7 +3277,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -3315,7 +3315,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3361,7 +3361,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -3402,7 +3402,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3450,7 +3450,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -3488,7 +3488,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3536,7 +3536,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -3577,7 +3577,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3648,7 +3648,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_spr_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3695,7 +3695,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3750,7 +3750,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_spr_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3800,7 +3800,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3857,7 +3857,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_spr_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3904,7 +3904,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3961,7 +3961,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_spr_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4011,7 +4011,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4070,7 +4070,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4132,7 +4132,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4175,7 +4175,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4240,7 +4240,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4284,7 +4284,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4346,7 +4346,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4390,7 +4390,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4455,7 +4455,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4503,7 +4503,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4565,7 +4565,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4613,7 +4613,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4678,7 +4678,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4721,7 +4721,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4783,7 +4783,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4826,7 +4826,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -4891,7 +4891,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4943,7 +4943,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_spr_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5016,7 +5016,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5068,7 +5068,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_spr_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5144,7 +5144,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5197,7 +5197,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_spr_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5270,7 +5270,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5323,7 +5323,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_spr_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5399,7 +5399,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5456,7 +5456,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_spr_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5529,7 +5529,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5586,7 +5586,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_spr_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5662,7 +5662,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5714,7 +5714,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_spr_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5787,7 +5787,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5839,7 +5839,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_spr_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5915,7 +5915,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5967,7 +5967,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -6029,7 +6029,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6081,7 +6081,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -6146,7 +6146,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6200,7 +6200,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -6262,7 +6262,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6316,7 +6316,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { uae_u32 t0 = 0; if (!extblank) { t0 = dpix_val0; @@ -6381,7 +6381,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6458,7 +6458,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_spr_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6531,7 +6531,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6592,7 +6592,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_spr_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6668,7 +6668,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6731,7 +6731,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_spr_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6804,7 +6804,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6867,7 +6867,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_spr_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6943,7 +6943,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_spr_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7061,4 +7061,5 @@ static LINETOSRC_FUNC linetoscr_ecs_genlock_funcs[] = { lts_ecs_fm0_ehb1_p4_ihires_dshres_spr_genlock, lts_ecs_fm0_ham0_p4_ihires_dshres_spr_genlock, lts_ecs_fm0_ham1_p4_ihires_dshres_spr_genlock, + NULL }; diff --git a/linetoscr_ocs_ecs_ntsc.cpp b/linetoscr_ocs_ecs_ntsc.cpp index 4c8c8110..e4230f7f 100644 --- a/linetoscr_ocs_ecs_ntsc.cpp +++ b/linetoscr_ocs_ecs_ntsc.cpp @@ -27,7 +27,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -53,7 +53,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -81,7 +81,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -110,7 +110,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -139,7 +139,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -165,7 +165,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -194,7 +194,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -223,7 +223,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -267,7 +267,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -293,7 +293,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -321,7 +321,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -350,7 +350,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -379,7 +379,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -405,7 +405,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -434,7 +434,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -463,7 +463,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -510,7 +510,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl5(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -536,7 +536,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -567,7 +567,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl5(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -596,7 +596,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -628,7 +628,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl5(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -654,7 +654,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -686,7 +686,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl5(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -715,7 +715,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -754,7 +754,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl5(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -780,7 +780,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -811,7 +811,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl5(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -840,7 +840,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -871,7 +871,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -897,7 +897,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -928,7 +928,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -957,7 +957,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -989,7 +989,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -1015,7 +1015,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1047,7 +1047,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -1076,7 +1076,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1112,7 +1112,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -1138,7 +1138,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1174,7 +1174,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -1203,7 +1203,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1234,7 +1234,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -1260,7 +1260,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1291,7 +1291,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_ntsc(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -1320,7 +1320,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1357,7 +1357,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1389,7 +1389,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1426,7 +1426,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1461,7 +1461,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1499,7 +1499,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1531,7 +1531,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1569,7 +1569,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1604,7 +1604,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1657,7 +1657,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1689,7 +1689,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1726,7 +1726,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1761,7 +1761,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1799,7 +1799,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1831,7 +1831,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1869,7 +1869,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1904,7 +1904,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1960,7 +1960,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1992,7 +1992,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2032,7 +2032,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2067,7 +2067,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2108,7 +2108,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2140,7 +2140,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2181,7 +2181,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2216,7 +2216,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2264,7 +2264,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2296,7 +2296,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2336,7 +2336,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2371,7 +2371,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2411,7 +2411,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2443,7 +2443,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2483,7 +2483,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2518,7 +2518,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2559,7 +2559,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2591,7 +2591,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2632,7 +2632,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2667,7 +2667,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2712,7 +2712,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2744,7 +2744,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2789,7 +2789,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2824,7 +2824,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2864,7 +2864,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2896,7 +2896,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2936,7 +2936,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_spr_ntsc(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2971,7 +2971,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3011,7 +3011,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dlores_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -3037,7 +3037,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3077,7 +3077,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dlores_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -3106,7 +3106,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3148,7 +3148,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dlores_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -3174,7 +3174,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3216,7 +3216,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dlores_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -3245,7 +3245,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3301,7 +3301,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -3327,7 +3327,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3367,7 +3367,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -3396,7 +3396,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3438,7 +3438,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -3464,7 +3464,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3506,7 +3506,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; uae_u32 t0 = 0; if (!extblank) { @@ -3535,7 +3535,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3664,7 +3664,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dlores_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3696,7 +3696,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3745,7 +3745,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dlores_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3780,7 +3780,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3831,7 +3831,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dlores_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3863,7 +3863,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3914,7 +3914,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dlores_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3949,7 +3949,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4014,7 +4014,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4046,7 +4046,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4095,7 +4095,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4130,7 +4130,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4181,7 +4181,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4213,7 +4213,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4264,7 +4264,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4299,7 +4299,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4409,7 +4409,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dhires_ntsc(void) shiftbpl2(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -4447,7 +4447,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4477,7 +4477,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dhires_ntsc(void) shiftbpl2(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -4518,7 +4518,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4549,7 +4549,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dhires_ntsc(void) shiftbpl2(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -4587,7 +4587,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4618,7 +4618,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dhires_ntsc(void) shiftbpl2(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -4659,7 +4659,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4705,7 +4705,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dhires_ntsc(void) shiftbpl4(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -4743,7 +4743,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4773,7 +4773,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dhires_ntsc(void) shiftbpl4(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -4814,7 +4814,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4845,7 +4845,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dhires_ntsc(void) shiftbpl4(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -4883,7 +4883,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4914,7 +4914,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dhires_ntsc(void) shiftbpl4(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -4955,7 +4955,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5004,7 +5004,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dhires_ntsc(void) shiftbpl5(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5042,7 +5042,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5075,7 +5075,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dhires_ntsc(void) shiftbpl5(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5116,7 +5116,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5150,7 +5150,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dhires_ntsc(void) shiftbpl5(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5188,7 +5188,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5222,7 +5222,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dhires_ntsc(void) shiftbpl5(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5263,7 +5263,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5304,7 +5304,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dhires_ntsc(void) shiftbpl5(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5342,7 +5342,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5375,7 +5375,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dhires_ntsc(void) shiftbpl5(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5416,7 +5416,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5449,7 +5449,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_ntsc(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5487,7 +5487,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5520,7 +5520,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_ntsc(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5561,7 +5561,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5595,7 +5595,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_ntsc(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5633,7 +5633,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5667,7 +5667,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_ntsc(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5708,7 +5708,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5746,7 +5746,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_ntsc(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5784,7 +5784,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5822,7 +5822,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_ntsc(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5863,7 +5863,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5896,7 +5896,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_ntsc(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -5934,7 +5934,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5967,7 +5967,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_ntsc(void) shiftbpl6(); uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -6008,7 +6008,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6047,7 +6047,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6092,7 +6092,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6131,7 +6131,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6179,7 +6179,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6219,7 +6219,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6264,7 +6264,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6304,7 +6304,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6352,7 +6352,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6407,7 +6407,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6452,7 +6452,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6491,7 +6491,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6539,7 +6539,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6579,7 +6579,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6624,7 +6624,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6664,7 +6664,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6712,7 +6712,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6770,7 +6770,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6815,7 +6815,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6857,7 +6857,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6905,7 +6905,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6948,7 +6948,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6993,7 +6993,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7036,7 +7036,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7084,7 +7084,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7134,7 +7134,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7179,7 +7179,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7221,7 +7221,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7269,7 +7269,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7311,7 +7311,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7356,7 +7356,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7398,7 +7398,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7446,7 +7446,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7489,7 +7489,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7534,7 +7534,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7577,7 +7577,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7625,7 +7625,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7672,7 +7672,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7717,7 +7717,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7764,7 +7764,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7812,7 +7812,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7854,7 +7854,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7899,7 +7899,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7941,7 +7941,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_spr_ntsc(void) } uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7989,7 +7989,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8029,7 +8029,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dhires_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -8067,7 +8067,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8107,7 +8107,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dhires_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -8148,7 +8148,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8190,7 +8190,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dhires_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -8228,7 +8228,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8270,7 +8270,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dhires_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -8311,7 +8311,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8367,7 +8367,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -8405,7 +8405,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8445,7 +8445,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -8486,7 +8486,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8528,7 +8528,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -8566,7 +8566,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8608,7 +8608,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; uae_u32 t0 = 0; @@ -8649,7 +8649,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8778,7 +8778,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dhires_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8823,7 +8823,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8872,7 +8872,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dhires_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -8920,7 +8920,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -8971,7 +8971,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dhires_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9016,7 +9016,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9067,7 +9067,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dhires_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl2(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9115,7 +9115,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9180,7 +9180,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9225,7 +9225,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9274,7 +9274,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9322,7 +9322,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9373,7 +9373,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9418,7 +9418,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9469,7 +9469,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_spr_ntsc(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -9517,7 +9517,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9631,7 +9631,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -9693,7 +9693,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9727,7 +9727,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -9792,7 +9792,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9827,7 +9827,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -9889,7 +9889,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -9924,7 +9924,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -9989,7 +9989,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10039,7 +10039,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -10101,7 +10101,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10135,7 +10135,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -10200,7 +10200,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10235,7 +10235,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -10297,7 +10297,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10332,7 +10332,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -10397,7 +10397,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10450,7 +10450,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -10512,7 +10512,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10549,7 +10549,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -10614,7 +10614,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10652,7 +10652,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -10714,7 +10714,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10752,7 +10752,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -10817,7 +10817,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10862,7 +10862,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -10924,7 +10924,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -10961,7 +10961,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -11026,7 +11026,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11063,7 +11063,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -11125,7 +11125,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11162,7 +11162,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -11227,7 +11227,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11265,7 +11265,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -11327,7 +11327,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11365,7 +11365,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -11430,7 +11430,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11472,7 +11472,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -11534,7 +11534,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11576,7 +11576,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -11641,7 +11641,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11678,7 +11678,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -11740,7 +11740,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11777,7 +11777,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -11842,7 +11842,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11885,7 +11885,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -11956,7 +11956,7 @@ static void lts_ecs_fm0_n0_p2_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -11999,7 +11999,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12073,7 +12073,7 @@ static void lts_ecs_fm0_n1_p2_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12117,7 +12117,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12188,7 +12188,7 @@ static void lts_ecs_fm0_dpf0_p2_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12232,7 +12232,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12306,7 +12306,7 @@ static void lts_ecs_fm0_dpf1_p2_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12365,7 +12365,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12436,7 +12436,7 @@ static void lts_ecs_fm0_n0_p4_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12479,7 +12479,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12553,7 +12553,7 @@ static void lts_ecs_fm0_n1_p4_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12597,7 +12597,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12668,7 +12668,7 @@ static void lts_ecs_fm0_dpf0_p4_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12712,7 +12712,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12786,7 +12786,7 @@ static void lts_ecs_fm0_dpf1_p4_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12848,7 +12848,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -12919,7 +12919,7 @@ static void lts_ecs_fm0_n0_p5_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -12965,7 +12965,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13039,7 +13039,7 @@ static void lts_ecs_fm0_n1_p5_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13086,7 +13086,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13157,7 +13157,7 @@ static void lts_ecs_fm0_dpf0_p5_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13204,7 +13204,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13278,7 +13278,7 @@ static void lts_ecs_fm0_dpf1_p5_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13332,7 +13332,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13403,7 +13403,7 @@ static void lts_ecs_fm0_ham0_p5_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13449,7 +13449,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13523,7 +13523,7 @@ static void lts_ecs_fm0_ham1_p5_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13569,7 +13569,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13640,7 +13640,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13686,7 +13686,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13760,7 +13760,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13807,7 +13807,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13878,7 +13878,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -13925,7 +13925,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -13999,7 +13999,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14050,7 +14050,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14121,7 +14121,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14172,7 +14172,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14246,7 +14246,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14292,7 +14292,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14363,7 +14363,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14409,7 +14409,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_spr_ntsc(void) uae_u8 pix2 = pix1; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -14483,7 +14483,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14527,7 +14527,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dshres_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -14589,7 +14589,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14633,7 +14633,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dshres_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -14698,7 +14698,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14744,7 +14744,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dshres_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -14806,7 +14806,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14852,7 +14852,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dshres_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -14917,7 +14917,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -14977,7 +14977,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -15039,7 +15039,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15083,7 +15083,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -15148,7 +15148,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15194,7 +15194,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -15256,7 +15256,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15302,7 +15302,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtbuf[h][1] = dpix_val1; dtbuf[h][2] = dpix_val2; @@ -15367,7 +15367,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15500,7 +15500,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dshres_spr_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15571,7 +15571,7 @@ static void lts_ecs_fm0_n0_p2_ihires_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15624,7 +15624,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dshres_spr_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15698,7 +15698,7 @@ static void lts_ecs_fm0_n1_p2_ihires_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15753,7 +15753,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dshres_spr_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15824,7 +15824,7 @@ static void lts_ecs_fm0_dpf0_p2_ihires_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -15879,7 +15879,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dshres_spr_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -15953,7 +15953,7 @@ static void lts_ecs_fm0_dpf1_p2_ihires_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16022,7 +16022,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_spr_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16093,7 +16093,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16146,7 +16146,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_spr_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16220,7 +16220,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16275,7 +16275,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_spr_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16346,7 +16346,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16401,7 +16401,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_spr_ntsc(void) uae_u8 pix1 = pix0; uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -16475,7 +16475,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_spr_ntsc(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -16945,4 +16945,5 @@ static LINETOSRC_FUNC linetoscr_ecs_ntsc_funcs[] = { lts_ecs_fm0_ehb1_p6_ihires_dshres_spr_ntsc, lts_ecs_fm0_ham0_p6_ihires_dshres_spr_ntsc, lts_ecs_fm0_ham1_p6_ihires_dshres_spr_ntsc, + NULL }; diff --git a/linetoscr_ocs_ecs_ntsc_genlock.cpp b/linetoscr_ocs_ecs_ntsc_genlock.cpp index 536359b5..6073bf58 100644 --- a/linetoscr_ocs_ecs_ntsc_genlock.cpp +++ b/linetoscr_ocs_ecs_ntsc_genlock.cpp @@ -33,7 +33,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_ntsc_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = 0; @@ -61,7 +61,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -95,7 +95,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_ntsc_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = 0; @@ -126,7 +126,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -161,7 +161,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_ntsc_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = 0; @@ -189,7 +189,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -224,7 +224,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_ntsc_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = 0; @@ -255,7 +255,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -294,7 +294,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_ntsc_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = 0; @@ -322,7 +322,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -361,7 +361,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_ntsc_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = 0; @@ -392,7 +392,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -426,7 +426,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_ntsc_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = 0; @@ -454,7 +454,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -488,7 +488,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_ntsc_genlock(void) last_bpl_pix = pix0; } shiftbpl6(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = 0; @@ -519,7 +519,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -562,7 +562,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_spr_ntsc_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -598,7 +598,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dlores_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -641,7 +641,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_spr_ntsc_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -680,7 +680,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dlores_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -724,7 +724,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_spr_ntsc_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -760,7 +760,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dlores_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -804,7 +804,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_spr_ntsc_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -843,7 +843,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dlores_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -891,7 +891,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_spr_ntsc_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -927,7 +927,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dlores_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -975,7 +975,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_spr_ntsc_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1014,7 +1014,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dlores_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1057,7 +1057,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_spr_ntsc_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1093,7 +1093,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dlores_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1136,7 +1136,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_spr_ntsc_genlock(void) sv0 = svt; } } - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1175,7 +1175,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dlores_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1221,7 +1221,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = 0; @@ -1249,7 +1249,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1295,7 +1295,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = 0; @@ -1326,7 +1326,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1374,7 +1374,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = 0; @@ -1402,7 +1402,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1450,7 +1450,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; uae_u32 t0 = 0; @@ -1481,7 +1481,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1552,7 +1552,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_spr_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1588,7 +1588,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dlores_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1643,7 +1643,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_spr_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1682,7 +1682,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dlores_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1739,7 +1739,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_spr_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1775,7 +1775,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dlores_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1832,7 +1832,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_spr_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -1871,7 +1871,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dlores_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -1924,7 +1924,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -1966,7 +1966,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2003,7 +2003,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -2048,7 +2048,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2086,7 +2086,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -2128,7 +2128,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2166,7 +2166,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -2211,7 +2211,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2253,7 +2253,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -2295,7 +2295,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2337,7 +2337,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -2382,7 +2382,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2419,7 +2419,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -2461,7 +2461,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2498,7 +2498,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -2543,7 +2543,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2589,7 +2589,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_spr_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2640,7 +2640,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dhires_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2686,7 +2686,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_spr_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2740,7 +2740,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dhires_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2787,7 +2787,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_spr_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2838,7 +2838,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dhires_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2885,7 +2885,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_spr_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -2939,7 +2939,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dhires_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -2990,7 +2990,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_spr_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3041,7 +3041,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dhires_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3092,7 +3092,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_spr_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3146,7 +3146,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dhires_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3192,7 +3192,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_spr_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3243,7 +3243,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dhires_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3289,7 +3289,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_spr_ntsc_genlock(void) uae_u32 dpix_val1 = dpix_val0; uae_u8 pix1 = pix0; uae_u16 gpix1 = gpix0; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3343,7 +3343,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dhires_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3389,7 +3389,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -3431,7 +3431,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3477,7 +3477,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -3522,7 +3522,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3570,7 +3570,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -3612,7 +3612,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3660,7 +3660,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -3705,7 +3705,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3776,7 +3776,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_spr_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3827,7 +3827,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dhires_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3882,7 +3882,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_spr_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -3936,7 +3936,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dhires_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -3993,7 +3993,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_spr_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4044,7 +4044,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dhires_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4101,7 +4101,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_spr_ntsc_genlock(void) last_bpl_pix = pix1; } shiftbpl4(); - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -4155,7 +4155,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dhires_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4214,7 +4214,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -4284,7 +4284,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4327,7 +4327,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -4400,7 +4400,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4444,7 +4444,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -4514,7 +4514,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4558,7 +4558,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -4631,7 +4631,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4679,7 +4679,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -4749,7 +4749,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4797,7 +4797,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -4870,7 +4870,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -4913,7 +4913,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -4983,7 +4983,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5026,7 +5026,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -5099,7 +5099,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5151,7 +5151,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_spr_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5232,7 +5232,7 @@ static void lts_ecs_fm0_n0_p6_ilores_dshres_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5284,7 +5284,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_spr_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5368,7 +5368,7 @@ static void lts_ecs_fm0_n1_p6_ilores_dshres_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5421,7 +5421,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_spr_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5502,7 +5502,7 @@ static void lts_ecs_fm0_dpf0_p6_ilores_dshres_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5555,7 +5555,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_spr_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5639,7 +5639,7 @@ static void lts_ecs_fm0_dpf1_p6_ilores_dshres_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5696,7 +5696,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_spr_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5777,7 +5777,7 @@ static void lts_ecs_fm0_ehb0_p6_ilores_dshres_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5834,7 +5834,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_spr_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -5918,7 +5918,7 @@ static void lts_ecs_fm0_ehb1_p6_ilores_dshres_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -5970,7 +5970,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_spr_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6051,7 +6051,7 @@ static void lts_ecs_fm0_ham0_p6_ilores_dshres_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6103,7 +6103,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_spr_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6187,7 +6187,7 @@ static void lts_ecs_fm0_ham1_p6_ilores_dshres_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6239,7 +6239,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -6309,7 +6309,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6361,7 +6361,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -6434,7 +6434,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6488,7 +6488,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -6558,7 +6558,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6612,7 +6612,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { dtbuf[h][0] = dpix_val0; dtgbuf[h][0] = gpix0; dtbuf[h][1] = dpix_val1; @@ -6685,7 +6685,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6762,7 +6762,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_spr_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6843,7 +6843,7 @@ static void lts_ecs_fm0_n0_p4_ihires_dshres_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -6904,7 +6904,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_spr_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -6988,7 +6988,7 @@ static void lts_ecs_fm0_n1_p4_ihires_dshres_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7051,7 +7051,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_spr_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7132,7 +7132,7 @@ static void lts_ecs_fm0_dpf0_p4_ihires_dshres_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7195,7 +7195,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_spr_ntsc_genlock(void) uae_u32 dpix_val3 = dpix_val2; uae_u8 pix3 = pix2; uae_u16 gpix3 = gpix2; - if (denise_pixtotal >= 0) { + if (denise_pixtotal >= 0 && denise_pixtotal < denise_pixtotal_max) { if (sv0) { uae_u32 spix0 = denise_render_sprites2(pix0, sv0); if (spix0) { @@ -7279,7 +7279,7 @@ static void lts_ecs_fm0_dpf1_p4_ihires_dshres_spr_ntsc_genlock(void) denise_hcounter_next++; denise_hcounter_next &= 511; } - denise_pixtotal--; + denise_pixtotal++; denise_hcounter = denise_hcounter_new; denise_cck++; } @@ -7397,4 +7397,5 @@ static LINETOSRC_FUNC linetoscr_ecs_ntsc_genlock_funcs[] = { lts_ecs_fm0_ehb1_p4_ihires_dshres_spr_ntsc_genlock, lts_ecs_fm0_ham0_p4_ihires_dshres_spr_ntsc_genlock, lts_ecs_fm0_ham1_p4_ihires_dshres_spr_ntsc_genlock, + NULL }; diff --git a/od-win32/win32.h b/od-win32/win32.h index d35a21c1..ff6cee93 100644 --- a/od-win32/win32.h +++ b/od-win32/win32.h @@ -20,12 +20,12 @@ #define LANG_DLL_FULL_VERSION_MATCH 1 #if WINUAEPUBLICBETA -#define WINUAEBETA _T("3") +#define WINUAEBETA _T("4") #else #define WINUAEBETA _T("") #endif -#define WINUAEDATE MAKEBD(2025, 1, 7) +#define WINUAEDATE MAKEBD(2025, 1, 11) //#define WINUAEEXTRA _T("AmiKit Preview") //#define WINUAEEXTRA _T("Amiga Forever Edition") diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index 37499dc6..db9892fb 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -9672,7 +9672,7 @@ static void values_to_chipsetdlg2 (HWND hDlg) if (workprefs.ntscmode) rev |= 0x10; rev |= (workprefs.chipset_mask & CSMASK_AGA) ? 0x23 : 0; - rev |= (currprefs.chipset_mask & CSMASK_ECS_AGNUS) ? 0x20 : 0; + rev |= (workprefs.chipset_mask & CSMASK_ECS_AGNUS) ? 0x20 : 0; _stprintf (txt, _T("%02X"), rev); } SetDlgItemText(hDlg, IDC_CS_AGNUSREV, txt); diff --git a/od-win32/winuaechangelog.txt b/od-win32/winuaechangelog.txt index 74e86c7d..5f03b3d4 100644 --- a/od-win32/winuaechangelog.txt +++ b/od-win32/winuaechangelog.txt @@ -1,5 +1,15 @@ +Beta 4: + +- Copper DMA is off and vblank strobe: copper loaded new pointer immediately, not when it get first DMA slot. +- ERSY=1 without genlock now really stops horizontal/vertical counters instead of faking it. Old hack removed. +- Reading AGA color register contents (RDRAM=1) read old value from previous scanline due to RGA bus buffering. +- Some ECS Denise modes had garbage visible in left and/or right side and display ended 1 lores pixel too early. +- Advanced chipset default (non-editable) Agnus revision field didn't always include ECS bit flag. Visual bug only. (Very old bug). +- TV Overscan modes work now, including genlock modes. +- Programmed mode screen width and horizontal position updates. + Beta 3: - Added longer delay before BPLCON0 ERSY=1 bit without genlock stops horizontal/vertical counters. diff --git a/readcpu.cpp b/readcpu.cpp index d2689cf7..61a87f01 100644 --- a/readcpu.cpp +++ b/readcpu.cpp @@ -867,9 +867,11 @@ static void handle_merges (long int opcode) for (srcreg=0; srcreg < sbitdst; srcreg++) { for (dstreg=0; dstreg < dstend; dstreg++) { uae_u16 code = (uae_u16)opcode; + uae_u8 spos = (table68k[opcode].spos < 0) ? 0 : table68k[opcode].spos; + uae_u8 dpos = (table68k[opcode].dpos < 0) ? 0 : table68k[opcode].dpos; - code = (code & ~smsk) | (srcreg << table68k[opcode].spos); - code = (code & ~dmsk) | (dstreg << table68k[opcode].dpos); + code = (code & ~smsk) | (srcreg << spos); + code = (code & ~dmsk) | (dstreg << dpos); /* Check whether this is in fact the same instruction. * The instructions should never differ, except for the diff --git a/specialmonitors.cpp b/specialmonitors.cpp index 2becd882..79824e51 100755 --- a/specialmonitors.cpp +++ b/specialmonitors.cpp @@ -2597,7 +2597,9 @@ static bool do_genlock(struct vidbuffer *src, struct vidbuffer *dst, bool double for (x = 0; x < src->inwidth; x++) { uae_u8 *s2 = s + src->rowbytes; uae_u8 *d2 = d + dst->rowbytes; - if ((!zclken && is_transparent(*s_genlock)) || (zclken && ztoggle)) { + if (*s_genlock == 0xffff) { + PUT_PRGBA(d, d2, dst, 0, 0, 0, 0, 0, doublelines, false); + } else if ((!zclken && is_transparent(*s_genlock)) || (zclken && ztoggle)) { a = amix2; if (genlock_error) { r = 0x00;