B2R2


AsmInterface Type

Constructors

Constructor Description

AsmInterface(isa, startAddress)

Full Usage: AsmInterface(isa, startAddress)

Parameters:
Returns: AsmInterface
isa : ISA
startAddress : Addr
Returns: AsmInterface

AsmInterface(hdl, startAddress)

Full Usage: AsmInterface(hdl, startAddress)

Parameters:
Returns: AsmInterface
hdl : BinHandle
startAddress : Addr
Returns: AsmInterface

Instance members

Instance member Description

this.AssembleBin(asm)

Full Usage: this.AssembleBin(asm)

Parameters:
    asm : string

Returns: Result<byte[] list, string>

Parse the given assembly input, and assemble a list of byte arrays, where each array corresponds to a binary instruction.

asm : string
Returns: Result<byte[] list, string>

this.LiftLowUIR(isFromLowUIR) (asm)

Full Usage: this.LiftLowUIR(isFromLowUIR) (asm)

Parameters:
    isFromLowUIR : bool
    asm : string

Returns: Result<Stmt[], string>

Parse the given string input, and lift it to an array of LowUIR statements. If the given string represents LowUIR instructions, then we simply parse the assembly instructions and return the corresponding AST.

isFromLowUIR : bool
asm : string
Returns: Result<Stmt[], string>