From 27128a95633bc00719dc28ab0736f7e528cfc61f Mon Sep 17 00:00:00 2001 From: xorstream Date: Thu, 10 Dec 2015 13:09:31 +1100 Subject: [PATCH] Added mnemonic printing to disasm function. --- tests/regress/mips_branch_delay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regress/mips_branch_delay.py b/tests/regress/mips_branch_delay.py index 2f90ef14..f710890c 100755 --- a/tests/regress/mips_branch_delay.py +++ b/tests/regress/mips_branch_delay.py @@ -11,7 +11,7 @@ class MipsBranchDelay(regress.RegressTest): def disas(code, addr): for i in md.disasm(code, addr): - print '0x%x: %s %s' % (i.address, str(i.bytes).encode('hex'), i.op_str) + print '0x%x: %s %-6s %s' % (i.address, str(i.bytes).encode('hex'), i.mnemonic, i.op_str) def hook_code(uc, addr, size, _): mem = str(uc.mem_read(addr, size))