Fixed bw column lookup table. We're indexing into a table of addresses, so multiply by 2!

This commit is contained in:
Rob McMullen 2017-06-26 05:48:52 -07:00
parent d6666ff027
commit 483b0a5903
1 changed files with 3 additions and 1 deletions

View File

@ -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__":