summaryrefslogtreecommitdiff
path: root/crystal.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-05-29 13:19:02 -0500
committerBryan Bishop <kanzure@gmail.com>2012-05-29 13:19:02 -0500
commit895f32e891b86c319c60e1430aa548092bd26cf8 (patch)
tree443f944ceac7db293a1e5bf1faa1cd358d70d6e3 /crystal.py
parent19e3c8ae4e2544ab7dc0794c9658ce592f240781 (diff)
move AsmList into romstr.py too
original-commit-id: 0edf9eb8b8d5bdf74b8af18401a92c2ce7a2c2a3
Diffstat (limited to 'crystal.py')
-rw-r--r--crystal.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/crystal.py b/crystal.py
index bd4f17e..e94e0cb 100644
--- a/crystal.py
+++ b/crystal.py
@@ -230,7 +230,8 @@ def map_name_cleaner(input):
replace("hooh", "HoOh").\
replace(" ", "")
-from romstr import RomStr
+from romstr import RomStr, AsmList
+
rom = RomStr(None)
def direct_load_rom(filename="../baserom.gbc"):
@@ -252,16 +253,6 @@ def load_rom(filename="../baserom.gbc"):
elif os.lstat(filename).st_size != len(rom):
return direct_load_rom(filename)
-class AsmList(list):
- """simple wrapper to prevent all asm lines from being shown on screen"""
-
- def length(self):
- """len(self)"""
- return len(self)
-
- def __repr__(self):
- return "AsmList(too long)"
-
def load_asm(filename="../main.asm"):
"""loads the asm source code into memory"""