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 | 0ad2dfdf486e26283123844376da578a0b4a7c87 (patch) | |
tree | d1b826577799ce5923939bcbd01aed8b1bded20a | |
parent | a1584535e74938c43de76ba03d5ccee415bb7612 (diff) |
use $byte not 0xbyte
original-commit-id: 41a5e27bdd68607746ba5376048a2dd79ad35296
-rw-r--r-- | crystal.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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", "$") |