Skip to content

nearpc ¤

Classes:

Functions:

  • nearpc

    Disassemble near a specified address.

  • emulate

    Like nearpc, but will emulate instructions from the current $PC forward.

Attributes:

nearpc_lines module-attribute ¤

nearpc_lines = add_param(
    "nearpc-lines", 10, "number of lines to print for the nearpc command"
)

nearpc_backwards_lines module-attribute ¤

nearpc_backwards_lines = add_param(
    "nearpc-backwards-lines",
    5,
    "number of lines before the pc to print for the nearpc command",
)

CURRENT_FUNCTION module-attribute ¤

CURRENT_FUNCTION = CurrentFunction()

parser module-attribute ¤

parser = ArgumentParser(
    description="Like nearpc, but will emulate instructions from the current $PC forward."
)

CurrentFunction ¤

nearpc ¤

nearpc(
    pc: int | None = None,
    lines: int | None = None,
    reverse: int | None = None,
    total: int | None = None,
    emulate: bool = False,
    use_cache: bool = False,
    linear: bool = True,
    no_branch: bool = False,
    function: int | None = None,
) -> None

Disassemble near a specified address.

emulate ¤

emulate(pc=None, lines=None, reverse=None, total=None, emulate_=True) -> None

Like nearpc, but will emulate instructions from the current $PC forward.