move load_asm2 next to load_asm

This commit is contained in:
Bryan Bishop
2013-09-12 00:51:48 -05:00
parent d1343b58b4
commit 01779ed10d

View File

@@ -137,6 +137,11 @@ def load_asm(filename="../main.asm"):
asm = direct_load_asm(filename=filename)
return asm
def load_asm2(filename="../main.asm"):
"""loads the asm source code into memory"""
new_asm = Asm(filename=filename)
return new_asm
def is_valid_address(address):
"""is_valid_rom_address"""
if address == None:
@@ -7144,11 +7149,6 @@ class AsmSection:
def to_asm(self):
return self.line
def load_asm2(filename="../main.asm"):
"""loads the asm source code into memory"""
new_asm = Asm(filename=filename)
return new_asm
class Asm:
"""controls the overall asm output"""
def __init__(self, filename="../main.asm", debug=True):