示例#1
0
def map_code_ea(*args):
  """
    map_code_ea(insn, addr, opnum) -> ea_t
    map_code_ea(insn, op) -> ea_t


  Map a code address. This function takes into account the segment
  translations.
  
  @param insn: the current instruction (C++: const  insn_t  &)
  @param addr: the referenced address to map (C++: ea_t)
  @param opnum: operand number (C++: int)
    """
  return _ida_ua.map_code_ea(*args)
示例#2
0
def map_code_ea(*args):
  """
    map_code_ea(insn, addr, opnum) -> ea_t
    map_code_ea(insn, op) -> ea_t
    """
  return _ida_ua.map_code_ea(*args)
示例#3
0
 def codeSeg(ea, opnum):
     insn = insn_t()
     if decode_insn(insn, ea):
         return _ida_ua.map_code_ea(insn, insn.ops[opnum])
     else:
         return ida_idaapi.BADADDR