2017-08-13 22:36:12 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
def main(argv):
|
|
|
|
|
|
|
|
print ("vramYOffset:",end="")
|
|
|
|
rowCount = 19
|
|
|
|
|
|
|
|
for jump in range(0,200):
|
|
|
|
rowCount += 1
|
|
|
|
if (rowCount==20):
|
|
|
|
print ("\n\t.word ", end="")
|
|
|
|
rowCount=0
|
|
|
|
|
|
|
|
print ("$%04x" % (jump*160), end="")
|
|
|
|
if (rowCount<19):
|
|
|
|
print (",", end="")
|
|
|
|
|
2017-12-27 17:06:42 +00:00
|
|
|
print ("\n\vramRowInvertedSpanLookup:",end="")
|
|
|
|
rowCount = 19
|
|
|
|
|
|
|
|
for jump in range(0,200):
|
|
|
|
rowCount += 1
|
|
|
|
if (rowCount==20):
|
|
|
|
print ("\n\t.word ", end="")
|
|
|
|
rowCount=0
|
|
|
|
|
|
|
|
print ("$%04x" % ((200-jump)*160+8192), end="")
|
|
|
|
if (rowCount<19):
|
|
|
|
print (",", end="")
|
|
|
|
|
2017-08-13 22:36:12 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main(sys.argv[1:])
|
|
|
|
|