From 14a35baa3fdc794c3a4f037530554768926e6465 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Fri, 27 Apr 2012 16:04:16 -0500 Subject: [PATCH] reverse byte output in RAMAddressParam.to_asm() --- extras/crystal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/crystal.py b/extras/crystal.py index 924f2b6f0..bd13f6a51 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -1400,7 +1400,7 @@ class RAMAddressParam(MultiByteParam): 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])+"" + else: return "$"+"".join(["%.2x"%x for x in reversed(self.bytes)])+"" class MoneyByteParam(MultiByteParam):