From 454fa8ab500175c562401483e2b3a20ca73f6598 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 7 Dec 2022 18:25:27 -0800 Subject: [PATCH] single frame working with no audio --- dither-image.js | 3 +-- dither4.s | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dither-image.js b/dither-image.js index b448098..d6898ce 100644 --- a/dither-image.js +++ b/dither-image.js @@ -669,7 +669,6 @@ function genAssembly(width, height, nbits, lines, reps) { }; for (let y = 0; y < linesEach; y++) { let base = linesEach * i; - console.log(i, y, base); frame.palette1[y] = lines[y + base].palette[1]; frame.palette2[y] = lines[y + base].palette[2]; frame.palette3[y] = lines[y + base].palette[3]; @@ -677,7 +676,7 @@ function genAssembly(width, height, nbits, lines, reps) { width, nbits, lines[y + base].output, - frame.bitmap.subarray(y * stride, y + 1 * stride) + frame.bitmap.subarray(y * stride, (y + 1) * stride) ); } } diff --git a/dither4.s b/dither4.s index d5acd40..a6e6360 100644 --- a/dither4.s +++ b/dither4.s @@ -69,8 +69,9 @@ displaylist: .endrep .byte $41 ; jump and blank - .addr displaylist_part2 + .addr displaylist +;fixme use displaylist_part2: ; 40 lines overscan .repeat 5