diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-04-17 19:24:18 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-04-17 19:24:18 -0500 |
commit | 41a5e27bdd68607746ba5376048a2dd79ad35296 (patch) | |
tree | 4793d0586f6a6b01fdf034f89fd9d745f053c6d3 | |
parent | 92f7a8510323b83fd52e2c908e6e9073d013bba9 (diff) |
use $byte not 0xbyte
-rw-r--r-- | extras/crystal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/crystal.py b/extras/crystal.py index 00e02a228..d483b960e 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -2160,7 +2160,7 @@ class SingleByteParam(): 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", "$") |