mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 18:38:29 +00:00
Merge pull request #307 from xorstream/mips_delayslot_codehook
Added mnemonic printing to disasm function.
This commit is contained in:
commit
9d7f81d195
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class MipsBranchDelay(regress.RegressTest):
|
||||||
|
|
||||||
def disas(code, addr):
|
def disas(code, addr):
|
||||||
for i in md.disasm(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, _):
|
def hook_code(uc, addr, size, _):
|
||||||
mem = str(uc.mem_read(addr, size))
|
mem = str(uc.mem_read(addr, size))
|
||||||
|
|
Loading…
Reference in a new issue