shithub: pokecrystal

Download patch

ref: 14a35baa3fdc794c3a4f037530554768926e6465
parent: 09a0e3aa85b22769a959e8c5b6abec38d2d770b2
author: Bryan Bishop <[email protected]>
date: Fri Apr 27 12:04:16 EDT 2012

reverse byte output in RAMAddressParam.to_asm()

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -1400,7 +1400,7 @@
         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):