From 0ad2dfdf486e26283123844376da578a0b4a7c87 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Tue, 17 Apr 2012 19:24:18 -0500 Subject: use $byte not 0xbyte original-commit-id: 41a5e27bdd68607746ba5376048a2dd79ad35296 --- crystal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crystal.py b/crystal.py index 00e02a2..d483b96 100644 --- a/crystal.py +++ b/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", "$") -- cgit v1.2.3