mirror of
https://github.com/robmcmullen/asmgen.git
synced 2024-09-28 06:57:46 +00:00
Fixed bw column lookup table. We're indexing into a table of addresses, so multiply by 2!
This commit is contained in:
parent
d6666ff027
commit
483b0a5903
@ -622,7 +622,9 @@ class ColLookup(Listing):
|
|||||||
self.out("\n")
|
self.out("\n")
|
||||||
self.label("MOD%d_%d" % (screen.numShifts, screen.bitsPerPixel))
|
self.label("MOD%d_%d" % (screen.numShifts, screen.bitsPerPixel))
|
||||||
for pixel in range(screen.numX):
|
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__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user