typedef void (*LINETOSRC_FUNC)(void);
static LINETOSRC_FUNC lts;
static bool lts_changed, lts_request;
-typedef void (*LINETOSRC_FUNCF)(int,int,int,int,int,int,int,int,int,uae_u32,uae_u8*,uae_u8*,int,int*,int,struct linestate*);
+typedef void (*LINETOSRC_FUNCF)(int,int,int,int,int,int,int,int,uae_u32,uae_u8**,uae_u8**,int,int*,int,struct linestate*);
static int denise_hcounter, denise_hcounter_next, denise_hcounter_new, denise_hcounter_prev, denise_hcounter_cmp;
static bool denise_accurate_mode;
static uae_u16 aga_delayed_color_val, aga_delayed_color_con2, aga_delayed_color_con3;
static int aga_unalign0, aga_unalign1, bpl1dat_unalign, reswitch_unalign;
static uae_u8 loaded_pix, loaded_pixs[4];
-static int hresolution, hresolution_add;
+static int hresolution, hresolution_inv, hresolution_add;
static bool denise_sprite_blank_active;
static int delayed_sprite_vblank_ecs;
static bool denise_burst;
w = diwlast - diwfirst;
dx = diwfirst - (hdisplay_left_border << (RES_MAX + 1)) + (1 << RES_MAX);
- w >>= (RES_MAX - hresolution);
- dx >>= (RES_MAX - hresolution);
+ w >>= hresolution_inv;
+ dx >>= hresolution_inv;
y2 = plflastline_total;
y1 = plffirstline_total;
fd->gfx_filter_autoscale != AUTOSCALE_CENTER);
}
-static void center_image (void)
+static void center_image(void)
{
struct amigadisplay *ad = &adisplays[0];
struct vidbuf_description *vidinfo = &ad->gfxvidinfo;
int w = vidinfo->inbuffer->inwidth;
int ew = vidinfo->inbuffer->extrawidth;
- int maxdiw = denisehtotal >> (RES_MAX - currprefs.gfx_resolution);
+ int maxdiw = denisehtotal >> hresolution_inv;
int xoffset = 0;
- if (currprefs.gfx_overscanmode <= OVERSCANMODE_OVERSCAN && diwlastword_total > 0 && diwlastword_total > diwfirstword_total && cancenter()) {
+ if (currprefs.gfx_overscanmode <= OVERSCANMODE_OVERSCAN && diwlastword_total > 0 && diwlastword_total > diwfirstword_total && cancenter()) {
visible_left_border = maxdiw - w;
visible_left_border &= ~((xshift(1, 0)) - 1);
- int ww = (diwlastword_total - diwfirstword_total) >> (RES_MAX - hresolution);
- int wx = ((diwfirstword_total) >> (RES_MAX - hresolution)) - visible_left_border / 2;
+ int ww = (diwlastword_total - diwfirstword_total) >> hresolution_inv;
+ int wx = ((diwfirstword_total) >> hresolution_inv) - (((hdisplay_left_border - 1) * 4) >> (hresolution_inv + (doublescan == 1 ? 1 : 0)));
if (ww < w && currprefs.gfx_xcenter == 2) {
/* Try to center. */
static void update_sprres_set(void)
{
- denise_spr_add = 1 << (RES_MAX - hresolution);
+ denise_spr_add = 1 << hresolution_inv;
denise_spr_shiftsize = 1 << (RES_SUPERHIRES - denise_sprres);
}
hresolution = RES_SUPERHIRES;
}
}
+ hresolution_inv = RES_MAX - hresolution;
}
static void setlasthamcolor(void)
}
}
#endif
- int rshift = RES_MAX - hresolution;
+ int rshift = hresolution_inv;
int hbstrt_offset2 = (hbstrt_offset - internal_pixel_start_cnt) >> rshift;
int hbstop_offset2 = (hbstop_offset - internal_pixel_start_cnt) >> rshift;
uae_u32 *hbstrt_ptr1 = hbstrt_offset2 >= 0 ? buf1t + hbstrt_offset2 : NULL;
int dpixcnt = 0;
- int xshift = RES_MAX - hresolution;
+ int xshift = hresolution_inv;
int xadd = 1 << xshift;
int denise_res_size2 = denise_res_size << xshift;
if (denise_res > hresolution) {
uae_u32 *buf2p = buf2 != buf1 ? buf2 : NULL;
uae_u8 *gbufp = gbuf;
- int rshift = RES_MAX - hresolution;
+ int rshift = hresolution_inv;
bool ecsena = ecs_denise && (ls->bplcon0 & 1) != 0;
bool brdblank = (ls->bplcon3 & 0x20) && ecsena;
}
+static int ltsf_init(int draw_start, int draw_startoffset, int *draw_end, int hbstrt_offset, int hbstop_offset)
+{
+ int end = *draw_end;
+ if (end > hbstrt_offset) {
+ end = hbstrt_offset;
+ }
+ int cnt = *draw_end;
+ if (cnt > draw_startoffset) {
+ cnt = draw_startoffset;
+ }
+ if (cnt > hbstop_offset && hbstop_offset >= draw_start) {
+ cnt = hbstop_offset;
+ }
+ if (cnt > bpl1dat_trigger_offset && bpl1dat_trigger_offset >= draw_start) {
+ cnt = bpl1dat_trigger_offset;
+ }
+ int max = addrdiff(xlinebuffer_end, (uae_u8*)buf1) / sizeof(uae_u32);
+ int w = end - cnt;
+ if (w > max) {
+ end -= w - max;
+ }
+ *draw_end = end;
+ return cnt;
+}
+
void draw_denise_bitplane_line_fast(int gfx_ypos, enum nln_how how, struct linestate *ls)
{
if (ls->strlong_seen) {
}
int doubling = hresolution - res;
- int rshift = RES_MAX - hresolution;
+ int rshift = hresolution_inv;
int delay1 = (ls->bplcon1 & 0x0f) | ((ls->bplcon1 & 0x0c00) >> 6);
int delaymask = (fmode >> res) - 1;
int draw_end = ls->internal_pixel_cnt >> rshift;
int draw_startoffset = ls->internal_pixel_start_cnt >> rshift;
-
- //write_log("%03d %03d %03d %03d %03d %03d %03d\n", vpos, hbstop_offset, hbstrt_offset, hstrt_offset, hstop_offset, bpl1dat_trigger_offset, delayoffset);
-
- uae_u8 bxor = ls->bplcon4 >> 8;
- buf1 = buf1p;
- buf2 = buf2p;
+#if 0
+ if (gfx_ypos == 100)
+ write_log("%p %03d %03d %03d %03d %03d %03d %03d %03d %03d %03d\n",
+ buf1p, gfx_ypos, hbstop_offset, hbstrt_offset, hstrt_offset, hstop_offset, bpl1dat_trigger_offset, draw_start, draw_end, draw_startoffset, delayoffset);
+#endif
int cpadd = doubling < 0 ? (doubling < -1 ? 2 : 1) : 0;
int bufadd = doubling > 0 ? (doubling > 1 ? 2 : 1) : 0;
subpix = 0;
} else if (doubling == 0) {
cpadds[0] = 1 << cpadd;
- subpix >>= RES_MAX - hresolution;
+ subpix >>= hresolution_inv;
cp -= subpix;
cp2 -= subpix;
} else if (doubling == 1) {
#if 1
- ltsf(draw_start, draw_end, draw_startoffset, hbstrt_offset, hbstop_offset, hstrt_offset, hstop_offset, bpl1dat_trigger_offset,
- planecnt, bgcol, cp, cp2, cpadd, cpadds, bufadd, ls);
+ buf1 = buf1p;
+ buf2 = buf2p;
+
+ // if horizontal shift is large enough to skip part of hdiw or bitplane, draw them to temp buffer.
+ if (draw_startoffset > bpl1dat_trigger_offset || draw_startoffset > hbstop_offset || draw_startoffset > hstrt_offset) {
+ buf1 = (uae_u32*)row_tmp8;
+ buf2 = (uae_u32*)row_tmp8;
+ int end = draw_startoffset;
+ int cnt = ltsf_init(draw_start, draw_startoffset, &end, hbstrt_offset, hbstop_offset);
+ ltsf(cnt, end, hbstrt_offset, hbstop_offset, hstrt_offset, hstop_offset, bpl1dat_trigger_offset,
+ planecnt, bgcol, &cp, &cp2, 1 << cpadd, cpadds, 1 << bufadd, ls);
+ draw_start = draw_startoffset;
+ buf1 = buf1p;
+ buf2 = buf2p;
+ }
+ int cnt = ltsf_init(draw_start, draw_startoffset, &draw_end, hbstrt_offset, hbstop_offset);
+ ltsf(cnt, draw_end, hbstrt_offset, hbstop_offset, hstrt_offset, hstop_offset, bpl1dat_trigger_offset,
+ planecnt, bgcol, &cp, &cp2, 1 << cpadd, cpadds, 1 << bufadd, ls);
#if 0
*buf1++ = 0;
}
}
- outf("static void %s(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,"
- "int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)", funcname);
+ outf("static void %s(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,"
+ "int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)", funcname);
outf("{");
+ outf("uae_u8 *cp = *cpp;");
+ outf("uae_u8 *cp2 = *cp2p;");
+
// shres on lores is useless
if (res == 2 && outres == 0) {
return false;
if (aga) {
outf("uae_u8 bxor = ls->bplcon4 >> 8;");
}
- outf("int bufaddv = 1 << bufadd;");
- outf("int cpaddv = 1 << cpadd;");
if (genlock) {
outf("uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);");
}
- outf("int end = draw_end;");
- outf("if (end > hbstrt_offset) {");
- outf(" end = hbstrt_offset;");
- outf("}");
-
- outf("int cnt = draw_end;");
- outf("if (cnt > draw_startoffset) {");
- outf(" cnt = draw_startoffset;");
- outf("}");
- outf("if (cnt > hbstop_offset) {");
- outf(" cnt = hbstop_offset;");
- outf("}");
- outf("if (cnt > bpl1dat_trigger_offset) {");
- outf(" cnt = bpl1dat_trigger_offset;");
- outf("}");
-
- outf("while (cnt < end) {");
+ outf("while (cnt < draw_end) {");
outf(" bool bpl = false;");
outf(" if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {");
- outf(" if (cnt >= draw_startoffset) {");
outf(" if (cnt < hbstop_offset) {");
if (doubling <= 0) {
outf("buf1++;");
outf("*gbuf++ = gpix;");
}
}
- outf("}");
outf(" }");
outf("} else {");
outf("bpl = true;");
outf("}");
outf("cnt += bufaddv;");
outf("}");
+
+ outf("*cpp = cp;");
+ outf("*cp2p = cp2;");
}
static void gen_null(void)
* This file was generated by genlinetoscr. Don't edit.
*/
-static void lts_aga_n_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ilores_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ilores_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ilores_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ilores_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ishres_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ishres_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ishres_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ishres_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ishres_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ishres_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ishres_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ishres_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ishres_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ishres_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ilores_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ilores_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ilores_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ilores_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ihires_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ilores_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ilores_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ilores_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ilores_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ihires_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ishres_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ishres_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ishres_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ishres_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ishres_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ilores_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ilores_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ilores_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ilores_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
- uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
+ uae_u8 bxor = ls->bplcon4 >> 8;
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ishres_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ishres_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ishres_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ishres_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ishres_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ishres_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ishres_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ishres_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ishres_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ishres_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ilores_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ilores_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ilores_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ilores_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ihires_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ilores_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ilores_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ilores_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ilores_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ihires_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ishres_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ishres_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ishres_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ishres_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ishres_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
static LINETOSRC_FUNCF linetoscr_aga_fast_funcs[] = {
* This file was generated by genlinetoscr. Don't edit.
*/
-static void lts_aga_n_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ilores_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ilores_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ilores_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ilores_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ishres_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ishres_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ishres_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ishres_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ishres_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ishres_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ishres_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ishres_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ishres_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ishres_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ilores_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ilores_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ilores_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ilores_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ihires_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ilores_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ilores_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ilores_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ilores_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ihires_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ishres_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ishres_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ishres_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ishres_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ishres_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ilores_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ilores_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ilores_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ilores_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ uae_u8 bxor = ls->bplcon4 >> 8;
+ uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ishres_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ishres_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ishres_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ishres_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ishres_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ishres_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ishres_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ishres_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ishres_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ishres_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ilores_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ilores_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ilores_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ilores_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ihires_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ilores_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ilores_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ilores_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ilores_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ilores_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ilores_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ilores_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ilores_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ilores_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ilores_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ihires_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ihires_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ihires_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ihires_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ihires_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ihires_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ihires_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ihires_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ihires_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ihires_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_n_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_n_ishres_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_n_ishres_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_dpf_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_dpf_ishres_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_dpf_ishres_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ehb_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ehb_ishres_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ehb_ishres_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_ham_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_ham_ishres_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_ham_ishres_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_aga_kehb_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u32 *colors_aga = (uae_u32*)(ls->linecolorstate + 256 * sizeof(uae_u32));
uae_u8 bxor = ls->bplcon4 >> 8;
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_aga_kehb_ishres_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_aga_kehb_ishres_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
static LINETOSRC_FUNCF linetoscr_aga_genlock_fast_funcs[] = {
* This file was generated by genlinetoscr. Don't edit.
*/
-static void lts_ecs_n_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ilores_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ilores_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ilores_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ilores_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ilores_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ishres_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ishres_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ishres_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ishres_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ishres_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ishres_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ishres_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ishres_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ishres_dlores_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dlores_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ishres_dlores_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dlores_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ilores_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ilores_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ilores_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ilores_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ilores_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ihires_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ihires_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ishres_dhires_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dhires_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ishres_dhires_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dhires_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ilores_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ilores_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ilores_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ilores_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ilores_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ihires_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ihires_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ishres_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ishres_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ishres_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ishres_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ishres_dshres_b1(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dshres_b1(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- } else {
- *buf1++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ } else {
+ *buf1++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ishres_dshres_b1_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dshres_b1_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ilores_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ilores_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ilores_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ilores_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ilores_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ishres_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ishres_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ishres_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ishres_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ishres_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ishres_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ishres_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ishres_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ishres_dlores_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dlores_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ishres_dlores_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dlores_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ilores_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ilores_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ilores_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ilores_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ilores_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ihires_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ihires_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ishres_dhires_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dhires_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ishres_dhires_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dhires_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ilores_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ilores_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ilores_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ilores_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ilores_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ihires_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ihires_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ishres_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ishres_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ishres_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ishres_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ishres_dshres_b2(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dshres_b2(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ishres_dshres_b2_filtered(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dshres_b2_filtered(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
static LINETOSRC_FUNCF linetoscr_ecs_fast_funcs[] = {
* This file was generated by genlinetoscr. Don't edit.
*/
-static void lts_ecs_n_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ilores_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ilores_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ilores_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ilores_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ilores_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ishres_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ishres_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ishres_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ishres_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ishres_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ishres_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ishres_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ishres_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ishres_dlores_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dlores_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ishres_dlores_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dlores_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ilores_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ilores_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ilores_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ilores_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ilores_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ihires_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ihires_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ishres_dhires_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dhires_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ishres_dhires_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dhires_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ilores_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ilores_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ilores_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ilores_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ilores_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ihires_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ihires_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ishres_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ishres_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ishres_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ishres_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ishres_dshres_b1_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dshres_b1_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ishres_dshres_b1_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dshres_b1_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ilores_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ilores_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ilores_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ilores_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ilores_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ishres_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ishres_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ishres_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ishres_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ishres_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ishres_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ishres_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ishres_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ishres_dlores_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dlores_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ishres_dlores_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dlores_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ilores_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ilores_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ilores_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ilores_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ilores_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ihires_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ihires_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ishres_dhires_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dhires_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ishres_dhires_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dhires_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ilores_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ilores_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ilores_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ilores_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ilores_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ilores_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ilores_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ilores_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ilores_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 4;
- buf2 += 4;
- gbuf += 4;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 4;
+ buf2 += 4;
+ gbuf += 4;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ilores_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ilores_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ihires_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ihires_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ihires_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ihires_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ihires_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ihires_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ihires_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ihires_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ihires_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1 += 2;
- buf2 += 2;
- gbuf += 2;
- } else {
- *buf1++ = bgcolor;
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1 += 2;
+ buf2 += 2;
+ gbuf += 2;
+ } else {
+ *buf1++ = bgcolor;
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ihires_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ihires_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_n_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_n_ishres_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_n_ishres_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_dpf_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_dpf_ishres_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_dpf_ishres_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ehb_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ehb_ishres_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ehb_ishres_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_ham_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_ham_ishres_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_ham_ishres_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
-static void lts_ecs_kehb_ishres_dshres_b2_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dshres_b2_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
uae_u32 *acolors = (uae_u32*)ls->linecolorstate;
uae_u16 *colors_ocs = (uae_u16*)(ls->linecolorstate + 256 * sizeof(uae_u32));
- int bufaddv = 1 << bufadd;
- int cpaddv = 1 << cpadd;
uae_u8 gpix = get_genlock_transparency_border_fast(ls->bplcon3);
- int end = draw_end;
- if (end > hbstrt_offset) {
- end = hbstrt_offset;
- }
- int cnt = draw_end;
- if (cnt > draw_startoffset) {
- cnt = draw_startoffset;
- }
- if (cnt > hbstop_offset) {
- cnt = hbstop_offset;
- }
- if (cnt > bpl1dat_trigger_offset) {
- cnt = bpl1dat_trigger_offset;
- }
- while (cnt < end) {
+ while (cnt < draw_end) {
bool bpl = false;
if (cnt < bpl1dat_trigger_offset || cnt < hbstop_offset || cnt < hstrt_offset || cnt >= hstop_offset) {
- if (cnt >= draw_startoffset) {
- if (cnt < hbstop_offset) {
- buf1++;
- buf2++;
- gbuf++;
- } else {
- *buf1++ = bgcolor;
- *buf2++ = bgcolor;
- *gbuf++ = gpix;
- }
+ if (cnt < hbstop_offset) {
+ buf1++;
+ buf2++;
+ gbuf++;
+ } else {
+ *buf1++ = bgcolor;
+ *buf2++ = bgcolor;
+ *gbuf++ = gpix;
}
} else {
bpl = true;
}
cnt += bufaddv;
}
+ *cpp = cp;
+ *cp2p = cp2;
}
-static void lts_ecs_kehb_ishres_dshres_b2_filtered_genlock(int draw_start, int draw_end, int draw_startoffset, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 *cp, uae_u8 *cp2, int cpadd, int *cpadds, int bufadd, struct linestate *ls)
+static void lts_ecs_kehb_ishres_dshres_b2_filtered_genlock(int cnt, int draw_end, int hbstrt_offset, int hbstop_offset, int hstrt_offset, int hstop_offset,int bpl1dat_trigger_offset, int planes, uae_u32 bgcolor, uae_u8 **cpp, uae_u8 **cp2p, int cpaddv, int *cpadds, int bufaddv, struct linestate *ls)
{
+ uae_u8 *cp = *cpp;
+ uae_u8 *cp2 = *cp2p;
lts_null();
}
static LINETOSRC_FUNCF linetoscr_ecs_genlock_fast_funcs[] = {