From 9d1cac8ee55553cdb20c36deb3b15c9219b02d9b Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Sat, 7 Jan 2017 16:08:08 -0500 Subject: More fixes for refactor --- python/examples/nsf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python/examples/nsf.py') diff --git a/python/examples/nsf.py b/python/examples/nsf.py index de775d34..b1bac3a8 100644 --- a/python/examples/nsf.py +++ b/python/examples/nsf.py @@ -39,6 +39,7 @@ class NSFView(BinaryView): def __init__(self, data): BinaryView.__init__(self, parent_view=data, file_metadata=data.file) + self.platform = Architecture["6502"].standalone_platform @classmethod def is_valid_for_data(self, data): @@ -94,8 +95,8 @@ class NSFView(BinaryView): self.define_auto_symbol(Symbol(SymbolType.FunctionSymbol, self.play_address, "_play")) self.define_auto_symbol(Symbol(SymbolType.FunctionSymbol, self.init_address, "_init")) - self.add_entry_point(Architecture['6502'].standalone_platform, self.init_address) - self.add_function(Architecture['6502'].standalone_platform, self.play_address) + self.add_entry_point(self.init_address) + self.add_function(self.play_address) # Hardware registers self.define_auto_symbol(Symbol(SymbolType.DataSymbol, 0x2000, "PPUCTRL")) -- cgit v1.3.1