From 483b0a5903b88b873b8d8c52a84007f6508895d6 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Mon, 26 Jun 2017 05:48:52 -0700 Subject: [PATCH] Fixed bw column lookup table. We're indexing into a table of addresses, so multiply by 2! --- HiSprite.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HiSprite.py b/HiSprite.py index 631c974..0d3a882 100755 --- a/HiSprite.py +++ b/HiSprite.py @@ -622,7 +622,9 @@ class ColLookup(Listing): self.out("\n") self.label("MOD%d_%d" % (screen.numShifts, screen.bitsPerPixel)) for pixel in range(screen.numX): - self.byte("$%02x" % ((pixel % screen.numShifts) * screen.bitsPerPixel), screen.numShifts) + # This is the index into the jump table, so it's always multiplied + # by 2 + self.byte("$%02x" % ((pixel % screen.numShifts) * 2), screen.numShifts) if __name__ == "__main__":