move AsmList into romstr.py too

This commit is contained in:
Bryan Bishop
2012-05-29 13:19:02 -05:00
parent ee7d39bf04
commit 0edf9eb8b8
2 changed files with 12 additions and 11 deletions

View File

@@ -23,3 +23,13 @@ class RomStr(str):
"""returns hex values from rom starting at offset until the given byte"""
return self.interval(offset, self.find(chr(byte), offset) - offset, strings=strings)
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)"