Added mnemonic printing to disasm function.

This commit is contained in:
xorstream 2015-12-10 13:09:31 +11:00
parent 1b145f431b
commit 27128a9563

View File

@ -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))