Interface StalkerArm64Iterator

Generates machine code for arm64.

Hierarchy

Properties

Memory location of the first byte of output.

Memory location of the next byte of output.

offset: number

Current offset in bytes.

Program counter at the next byte of output.

Methods

  • Eagerly cleans up memory.

    Returns void

  • Resolves label references and writes pending data to memory. You should always call this once you've finished generating code. It is usually also desirable to do this between pieces of unrelated code, e.g. when generating multiple functions in one go.

    Returns void

  • Returns void

  • Puts a B instruction referencing labelId, defined by a past or future putLabel().

    Parameters

    • labelId: string

    Returns void

  • Puts a BL instruction referencing labelId, defined by a past or future putLabel().

    Parameters

    • labelId: string

    Returns void

  • Puts a BRK instruction.

    Parameters

    • imm: number

    Returns void

  • Puts a CBNZ instruction referencing labelId, defined by a past or future putLabel().

    Parameters

    Returns void

  • Puts a CBZ instruction referencing labelId, defined by a past or future putLabel().

    Parameters

    Returns void

  • Puts a raw instruction.

    Parameters

    • insn: number

    Returns void

  • Puts a label at the current position, where id is an identifier that may be referenced in past and future put*Label() calls.

    Parameters

    • id: string

    Returns void

  • Puts an LDR instruction with a dangling data reference, returning an opaque ref value that should be passed to putLdrRegValue() at the desired location.

    Parameters

    Returns number

  • Puts a NOP instruction.

    Returns void

  • Puts code needed for popping all Q registers off the stack.

    Returns void

  • Puts code needed for popping all X registers off the stack.

    Returns void

  • Puts code needed for pushing all Q registers on the stack.

    Returns void

  • Puts code needed for pushing all X registers on the stack.

    Returns void

  • Puts a RET instruction.

    Returns void

  • Puts a TBNZ instruction referencing labelId, defined by a past or future putLabel().

    Parameters

    Returns void

  • Puts a TBZ instruction referencing labelId, defined by a past or future putLabel().

    Parameters

    Returns void

  • Skips nBytes.

    Parameters

    • nBytes: number

    Returns void

Generated using TypeDoc