From 7cb38df60b1f3ccb76823c799549e3fbea4ab59f Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Thu, 12 Sep 2013 00:43:24 -0500 Subject: move AsmLine into crystalparts/asmline.py --- pokemontools/crystal.py | 10 ++-------- pokemontools/crystalparts/__init__.py | 0 pokemontools/crystalparts/asmline.py | 8 ++++++++ 3 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 pokemontools/crystalparts/__init__.py create mode 100644 pokemontools/crystalparts/asmline.py diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py index 8a12dad..a3d87f0 100644 --- a/pokemontools/crystal.py +++ b/pokemontools/crystal.py @@ -7022,14 +7022,8 @@ def apply_diff(diff, try_fixing=True, do_compile=True): os.system("mv ../main1.asm ../main.asm") return False -class AsmLine: - # TODO: parse label lines - def __init__(self, line, bank=None): - self.line = line - self.bank = bank - - def to_asm(self): - return self.line +import crystalparts.asmline +AsmLine = crystalparts.asmline.AsmLine class Incbin: def __init__(self, line, bank=None, debug=False): diff --git a/pokemontools/crystalparts/__init__.py b/pokemontools/crystalparts/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pokemontools/crystalparts/asmline.py b/pokemontools/crystalparts/asmline.py new file mode 100644 index 0000000..e62d774 --- /dev/null +++ b/pokemontools/crystalparts/asmline.py @@ -0,0 +1,8 @@ +class AsmLine: + # TODO: parse label lines + def __init__(self, line, bank=None): + self.line = line + self.bank = bank + + def to_asm(self): + return self.line -- cgit v1.2.3