use $byte not 0xbyte

original-commit-id: 41a5e27bdd68607746ba5376048a2dd79ad35296
This commit is contained in:
Bryan Bishop 2012-04-17 19:24:18 -05:00
parent a1584535e7
commit 0ad2dfdf48

View File

@ -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", "$")