ref: 9672e960ee6822fd4cb7488412635c85751a1c3d
parent: d319aea119145ecb03cc28f5877c2d9393944965
author: Bryan Bishop <[email protected]>
date: Fri Apr 27 11:39:41 EDT 2012
fix RAMAddressParam.to_asm() (no [] characters)
--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -1399,8 +1399,8 @@
def to_asm(self):
address = calculate_pointer_from_bytes_at(self.address, bank=False)
label = get_ram_label(address)
- if label: return "["+label+"]"
- else: return "[$"+"".join(["%.2x"%x for x in self.bytes])+"]"
+ if label: return label
+ else: return "$"+"".join(["%.2x"%x for x in self.bytes])+""
class MoneyByteParam(MultiByteParam):