'Evaluate target address of an instruction, used for jumpto decision
Args:
- inst: ASM instruction text (String)
Returns:
- target address (Int)'

def eval_target(self, inst):

    target = None
    inst = inst.strip()
    opcode = inst.split(': DCTB ')[(-1)].split()[0]
    p = re.compile('.*?:\\s*[^    ]*\\s*(.*    PTR    ).*(0x[^    ]*)')
    m = p.search(inst)
    if (not m):
        p = re.compile('.*?:\\s.*\\s(0x[^    ]*|\\w+)')
        m = p.search(inst)
        if m:
            target = m.group(1)
            target = self.parse_and_eval(target)
        else:
            target = None
    else:
        if (']' in m.group(2)):
            p = re.compile('.*?:\\s*[^    ]*\\s*(.*    PTR    ).*\\[(.*)\\]')
            m = p.search(inst)
        target = self.parse_and_eval(('%s[%s]' % (m.group(1), m.group(2).strip())))
    return to_int(target)
