GSCats/GenerateVRAMTable.py

28 lines
384 B
Python
Raw Normal View History

#!/usr/bin/env python3
import sys
def main(argv):
# Prologue
2017-08-06 20:26:31 +00:00
print ("vramRowEndsMinusOne:",end="")
v = 0x20a0
rowCount = 19
for jump in range(0,200):
rowCount += 1
if (rowCount==20):
print ("\n\t.word ", end="")
rowCount=0
2017-08-06 20:26:31 +00:00
print ("$%x" % (v-1), end="")
if (rowCount<19):
print (",", end="")
v += 160
if __name__ == "__main__":
main(sys.argv[1:])