Permalink
Browse files

reverse byte output in RAMAddressParam.to_asm()

  • Loading branch information...
kanzure committed Apr 27, 2012
1 parent 09a0e3a commit 14a35baa3fdc794c3a4f037530554768926e6465
Showing with 1 addition and 1 deletion.
  1. +1 −1 extras/crystal.py
View
@@ -1400,7 +1400,7 @@ 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])+""
+ else: return "$"+"".join(["%.2x"%x for x in reversed(self.bytes)])+""
class MoneyByteParam(MultiByteParam):

0 comments on commit 14a35ba

Please sign in to comment.