reverse byte output in RAMAddressParam.to_asm()

This commit is contained in:
Bryan Bishop 2012-04-27 16:04:16 -05:00
parent 09a0e3aa85
commit 14a35baa3f

View File

@ -1400,7 +1400,7 @@ class RAMAddressParam(MultiByteParam):
address = calculate_pointer_from_bytes_at(self.address, bank=False) address = calculate_pointer_from_bytes_at(self.address, bank=False)
label = get_ram_label(address) label = get_ram_label(address)
if label: return label if label: return label
else: return "$"+"".join(["%.2x"%x for x in self.bytes])+"" else: return "$"+"".join(["%.2x"%x for x in reversed(self.bytes)])+""
class MoneyByteParam(MultiByteParam): class MoneyByteParam(MultiByteParam):