Lines Matching refs:insn
16 def print_insn_detail(insn): argument
18 print("0x%x:\t%s\t%s" % (insn.address, insn.mnemonic, insn.op_str))
21 if insn.id == 0:
24 if len(insn.operands) > 0:
25 print("\top_count: %u" % len(insn.operands))
27 for i in insn.operands:
29 print("\t\toperands[%u].type: REG = %s" % (c, insn.reg_name(i.reg)))
36 % (c, insn.reg_name(i.mem.base)))
46 % (c, insn.reg_name(i.crx.reg)))
52 if insn.bc:
53 print("\tBranch code: %u" % insn.bc)
54 if insn.bh:
55 print("\tBranch hint: %u" % insn.bh)
56 if insn.update_cr0:
72 for insn in md.disasm(code, 0x1000):
73 print_insn_detail(insn)
75 print("0x%x:\n" % (insn.address + insn.size))