Interface StalkerThumbIterator

Generates machine code for arm.

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

  • Commits the first pending reference to the given label, returning true on success. Returns false if the given label hasn't been defined yet, or there are no more pending references to it.

    Parameters

    • id: string

    Returns boolean

  • 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 B WIDE instruction.

    Parameters

    • labelId: string

    Returns void

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

    Parameters

    • labelId: string

    Returns void

  • Puts a BKPT instruction.

    Parameters

    • imm: number

    Returns void

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

    Parameters

    • labelId: string

    Returns void

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

    Parameters

    • labelId: string

    Returns void

  • Puts an OS/architecture-specific breakpoint instruction.

    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 raw Thumb-2 instruction.

    Parameters

    • upper: number
    • lower: 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 a NOP instruction.

    Returns void

  • Skips nBytes.

    Parameters

    • nBytes: number

    Returns void

Generated using TypeDoc