This commit is contained in:
Brooke Vibber 2022-11-25 18:25:36 -08:00
parent 765a683dda
commit f261aa6908
2 changed files with 8 additions and 1 deletions

View file

@ -21,3 +21,5 @@ clean :
rm -f sample[0-6].s
rm -f sample[0-6].xex
rm -f sample[0-6].png
.dummy: sample0.s sample1.s sample2.s sample3.s sample4.s sample5.s sample6.s

View file

@ -668,7 +668,12 @@ function genAssembly(width, height, nbits, lines) {
palette1[y] = lines[y].palette[1];
palette2[y] = lines[y].palette[2];
palette3[y] = lines[y].palette[3];
indexedToBitmap(width, nbits, lines[y].output, framebuffer.slice(y * stride, (y + 1) * stride));
indexedToBitmap(
width,
nbits,
lines[y].output,
framebuffer.subarray(y * stride, (y + 1) * stride)
);
}
return `.data