From 00f1b71cd48f7992d70309a82ccd0a2d0f5ac8db Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 27 Jan 2013 16:49:35 -0600 Subject: remove a broken, unfinished disassembler (DisAsm) This removes DisAsm from romstr.py, which was the only reason that gbz80disasm wasn't able to import RomStr from romstr.py. DisAsm was an experimental gbz80 disassembler that was meant to replace gbz80disasm eventually. The goals were to write cleaner code and write more unit tests. But it never worked and the code quality looks close to being the same as gbz80disasm anyway. --- extras/gbz80disasm.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'extras/gbz80disasm.py') diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py index f828f9d8c..9b1c775e4 100644 --- a/extras/gbz80disasm.py +++ b/extras/gbz80disasm.py @@ -9,15 +9,13 @@ import random spacing = "\t" -class XRomStr(str): - def __repr__(self): - return "RomStr(too long)" +from romstr import RomStr def load_rom(filename="../baserom.gbc"): """loads bytes into memory""" global rom file_handler = open(filename, "rb") - rom = XRomStr(file_handler.read()) + rom = RomStr(file_handler.read()) file_handler.close() return rom -- cgit v1.2.3