Skip to content

Instantly share code, notes, and snippets.

@quend
Created September 14, 2015 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quend/e008ba6604c7ef639118 to your computer and use it in GitHub Desktop.
Save quend/e008ba6604c7ef639118 to your computer and use it in GitHub Desktop.
roundMapEa = 0x5004
currentRnd = 0
out = []
while currentRnd < 23:
roundEa = Dword(roundMapEa + 4 * currentRnd)
i = 0
round_list = []
while i < 3476:
round_list.append(Word(roundEa))
roundEa += 2
i += 1
out.append(round_list)
currentRnd += 1
fd = open(r'rounds.py', 'w')
fd.write("round_map = %s\n" % repr(out))
fd.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment