From 7244cb256ee7a7c2fd3b56061dc4541bd5245734 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Tue, 15 May 2012 22:15:08 -0500 Subject: [PATCH] only recalculate a PointerLabelParam parsed_address if necessary --- extras/crystal.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extras/crystal.py b/extras/crystal.py index 0a8539b8f..98f5c2543 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -1466,7 +1466,11 @@ class PointerLabelParam(MultiByteParam): 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