You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
somewhat improved disassembler
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user