base/regdump.h: Pass cooked register index to `REGDEF_GPX86_COMMON'.
[catacomb] / utils / split-pieces
index a5b6294..0bffd50 100755 (executable)
@@ -69,13 +69,19 @@ class SignedQfConvert (BaseQfConvert):
   SIGNEDP = True
   def fmt(me, n): return str(n)
 
+class UnsignedQfConvert (BaseQfConvert):
+  SIGNEDP = False
+  def fmt(me, n): return '0x%x' % n
+
 R_split = RX.compile(r',\s*|\s+')
 def spliteval(arg): return map(eval, R_split.split(arg.strip()))
 
 convmap = { 'scaf': ScafConvert,
             'unscaf': ScafConvert,
             'qf': SignedQfConvert,
-            'unqf': SignedQfConvert }
+            'unqf': SignedQfConvert,
+            'uqf': UnsignedQfConvert,
+            'unuqf': UnsignedQfConvert }
 op = getarg()
 cvt = convmap[op].parse()
 if op.startswith('un'): prepare, conv, format = spliteval, cvt.unhack, str