def create_insn(*args): if len(args) == 1: tmp = insn_t() rc = _ida_ua.create_insn(args[0], tmp) cmd.assign(tmp) return rc else: return _ida_ua.create_insn(*args)
def create_insn(*args): """ create_insn(ea, out=None) -> int Create an instruction at the specified address. This function checks if an instruction is present at the specified address and will try to create one if there is none. It will fail if there is a data item or other items hindering the creation of the new instruction. This function will also fill the 'out' structure. @param ea: linear address (C++: ea_t) @param out: the resulting instruction (C++: insn_t *) @return: the length of the instruction or 0 """ return _ida_ua.create_insn(*args)
def create_insn(*args): """ create_insn(ea, out=None) -> int """ return _ida_ua.create_insn(*args)