mirror of
https://github.com/robmcmullen/asmgen.git
synced 2025-02-20 15:29:02 +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.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__":
|
||||
|
Loading…
x
Reference in New Issue
Block a user