simple tool to dump pc item constants

hg-commit-id: 749bc5943ca9
This commit is contained in:
Bryan Bishop 2012-01-19 15:06:44 -06:00
parent 2b1a6f5822
commit 24eac9ae3f

9
extras/print_pc_items.py Normal file
View file

@ -0,0 +1,9 @@
#!/usr/bin/python
#author: Bryan Bishop <kanzure@gmail.com>
#date: 2012-01-19
#spit out some constants
for x in range(1, 51):
print "BOXITEM%.2d EQU $%s" % (x, ("%.2x" % (0xd539+(x*2))).upper())
print "BOXCOUNT%.2d EQU $%s" % (x, ("%.2x" % (0xd539+(x*2)+1)).upper())