1 /* Tests a bug in for loops where b in plot_point is always 1.
2 Stripped down from the gbdk filltest.c
6 typedef unsigned char UBYTE
;
9 getpix(UBYTE x
, UBYTE y
)
18 color(UBYTE a
, UBYTE b
, UBYTE c
)
24 line(UBYTE a
, UBYTE b
, UBYTE c
, UBYTE d
)
26 UNUSED(a
& b
& c
& d
);
30 plot_point(UBYTE a
, UBYTE b
)
42 LOG(("(a, b) -> (%u, %u)\n", (unsigned int)a
, (unsigned int)b
));
50 for (b
=0; b
<=10U; b
++) {
51 for (a
=0; a
<=12U; a
++) {
52 color(getpix(a
,b
+1), 0, 1);