'Format output of gdb disassemble command with colors
Usage:
MYNAME "args for gdb disassemble command"
MYNAME address /NN: equivalent to "x/NNi address"'

def pdisass(self, *arg):

    (address, fmt_count) = normalize_argv(arg, 2)
    if (isinstance(fmt_count, str) and fmt_count.startswith('/')):
        count = to_int(fmt_count[1:])
        if ((not count) or (to_int(address) is None)):
            self._missing_argument()
        else:
            code = peda.get_disasm(address, count)
    else:
        code = peda.disassemble(*arg)
    msg(format_disasm_code(code))
    return
