ref: 7244cb256ee7a7c2fd3b56061dc4541bd5245734
parent: 9ea77b0ad8758f100a6577cd43910b2a08776575
author: Bryan Bishop <[email protected]>
date: Tue May 15 18:15:08 EDT 2012
only recalculate a PointerLabelParam parsed_address if necessary
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -1466,7 +1466,11 @@
bank = self.bank
#we pass bank= for whether or not to include a bank byte when reading
#.. it's not related to caddress
- caddress = calculate_pointer_from_bytes_at(self.address, bank=self.bank)
+ caddress = None
+ if not (hasattr(self, "parsed_address") and self.parsed_address != None):
+ caddress = calculate_pointer_from_bytes_at(self.address, bank=self.bank)
+ else:
+ caddress = self.parsed_address
label = get_label_for(caddress)
pointer_part = label #use the label, if it is found