'Disassemble instructions nearby current PC or given address
Usage:
MYNAME [count]
MYNAME address [count]
count is maximum 256'

def nearpc(self, *arg):

    (address, count) = normalize_argv(arg, 2)
    address = to_int(address)
    count = to_int(count)
    if ((address is not None) and (address < 262144)):
        count = address
        address = None
    if (address is None):
        address = peda.getreg('pc')
    if (count is None):
        code = peda.disassemble_around(address)
    else:
        code = peda.disassemble_around(address, count)
    if code:
        msg(format_disasm_code(code, address))
    else:
        error_msg('invalid    $pc    address    or    instruction    count')
    return
