somewhat improved disassembler

This commit is contained in:
Bryan Bishop
2012-06-10 12:24:33 -05:00
parent 3233cead33
commit 10a5a6518d
2 changed files with 96 additions and 162 deletions

View File

@@ -6,15 +6,18 @@ from copy import copy, deepcopy
from ctypes import c_int8
import json
import random
from romstr import RomStr
spacing = "\t"
class XRomStr(str):
def __repr__(self):
return "RomStr(too long)"
def load_rom(filename="../baserom.gbc"):
"""loads bytes into memory"""
global rom
file_handler = open(filename, "r")
rom = RomStr(file_handler.read())
rom = XRomStr(file_handler.read())
file_handler.close()
return rom