shithub: pokecrystal

Download patch

ref: 41a5e27bdd68607746ba5376048a2dd79ad35296
parent: 92f7a8510323b83fd52e2c908e6e9073d013bba9
author: Bryan Bishop <[email protected]>
date: Tue Apr 17 15:24:18 EDT 2012

use $byte not 0xbyte

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -2160,7 +2160,7 @@
         if not self.should_be_decimal: return hex(self.byte).replace("0x", "$")
         else: return str(self.byte)
 class HexByte(SingleByteParam):
-    def to_asm(self): return hex(self.byte)
+    def to_asm(self): return "$%.2x" % (self.byte)
 class DollarSignByte(SingleByteParam):
     #def to_asm(self): return "$%.2x"%self.byte
     def to_asm(self): return hex(self.byte).replace("0x", "$")