Print encodings as [R#10c] instead of [R/10c].

The # is a more conventional prefix for hexadecimal, and when ISA
information is not available, there may be a decimal number in front
which would be confusing.

So prefer [1#10c] for the ISA-less encoding format. Here '1' is decimal
and '#10c' is hexadecimal.
This commit is contained in:
Jakob Stoklund Olesen
2016-09-21 16:57:08 -07:00
parent 4e09b48dd4
commit 2ec50203fb
3 changed files with 7 additions and 7 deletions

View File

@@ -1205,7 +1205,7 @@ class Encoding(object):
self.isap = And.combine(recipe.isap, isap)
def __str__(self):
return '[{}/{:02x}]'.format(self.recipe, self.encbits)
return '[{}#{:02x}]'.format(self.recipe, self.encbits)
def ctrl_typevar(self):
"""