'Get value of a specific register
Args:
- register: register name (String)
Returns:
- register value (Int)'

def getreg(self, register):

    r = register.lower()
    regs = self.execute_redirect(('info    registers    %s' % r))
    if regs:
        regs = regs.splitlines()
        if (len(regs) > 1):
            return None
        else:
            result = to_int(regs[0].split()[1])
            return result
    return None
