B2R2


AsmMain Module

Types

Type Description

AssemblyInfo

UserState

Functions and values

Function or value Description

assemble parserState isa baseAddr instrs

Full Usage: assemble parserState isa baseAddr instrs

Parameters:
Returns: byte[] list
parserState : UserState
isa : ISA
baseAddr : Addr
instrs : AsmInsInfo list
Returns: byte[] list

computeAddr idx realLenArr

Full Usage: computeAddr idx realLenArr

Parameters:
    idx : int
    realLenArr : int[]

Returns: int64
idx : int
realLenArr : int[]
Returns: int64

computeDistance myIdx labelIdx maxLenArr

Full Usage: computeDistance myIdx labelIdx maxLenArr

Parameters:
    myIdx : int
    labelIdx : int
    maxLenArr : int[]

Returns: int64
myIdx : int
labelIdx : int
maxLenArr : int[]
Returns: int64

computeFitType dist

Full Usage: computeFitType dist

Parameters:
    dist : int64

Returns: int<MeasureProduct<rt, MeasureOne>>
dist : int64
Returns: int<MeasureProduct<rt, MeasureOne>>

computeIncompMaxLen _arg1

Full Usage: computeIncompMaxLen _arg1

Parameters:
Returns: int
_arg1 : Opcode
Returns: int

computeMaxLen components

Full Usage: computeMaxLen components

Parameters:
Returns: int[]
components : AsmComponent[] list
Returns: int[]

computeRealLen components

Full Usage: computeRealLen components

Parameters:
Returns: int[]
components : AsmComponent[] list
Returns: int[]

concretizeLabel sz offset

Full Usage: concretizeLabel sz offset

Parameters:
Returns: byte[]
sz : int<MeasureProduct<rt, MeasureOne>>
offset : int64
Returns: byte[]

decideOp parserState maxLenArr myIdx comp

Full Usage: decideOp parserState maxLenArr myIdx comp

Parameters:
Returns: AsmComponent[]
parserState : UserState
maxLenArr : int[]
myIdx : int
comp : AsmComponent[]
Returns: AsmComponent[]

encodeInstruction ins ctxt

Full Usage: encodeInstruction ins ctxt

Parameters:
Returns: AsmComponent[]
ins : AsmInsInfo
ctxt : EncContext
Returns: AsmComponent[]

finalize arch parserState realLenArr baseAddr myIdx comp

Full Usage: finalize arch parserState realLenArr baseAddr myIdx comp

Parameters:
Returns: byte[]
arch : Architecture
parserState : UserState
realLenArr : int[]
baseAddr : Addr
myIdx : int
comp : AsmComponent[]
Returns: byte[]

getImm imm

Full Usage: getImm imm

Parameters:
    imm : 'a[] option

Returns: 'a[]
imm : 'a[] option
Returns: 'a[]

getOpByteOfIncomp relSz _arg1

Full Usage: getOpByteOfIncomp relSz _arg1

Parameters:
Returns: byte[]
relSz : int<MeasureProduct<rt, MeasureOne>>
_arg1 : Opcode
Returns: byte[]

normalToByte _arg1

Full Usage: normalToByte _arg1

Parameters:
Returns: byte
_arg1 : AsmComponent
Returns: byte