B2R2


ParserHelper Module

Types

Type Description

AssemblyLine

Functions and values

Function or value Description

checkIfInstructionLine _arg1

Full Usage: checkIfInstructionLine _arg1

Parameters:
Returns: InsInfo option
_arg1 : AssemblyLine
Returns: InsInfo option

extractOperands _arg1

Full Usage: extractOperands _arg1

Parameters:
Returns: Operands
_arg1 : Operand list
Returns: Operands

filterInstructionLines lst

Full Usage: filterInstructionLines lst

Parameters:
Returns: InsInfo list
lst : AssemblyLine list
Returns: InsInfo list

getOpCode (arg1, arg2)

Full Usage: getOpCode (arg1, arg2)

Parameters:
    arg0 : ('d * 'e) * 'f
    arg1 : 'g

Returns: 'd
arg0 : ('d * 'e) * 'f
arg1 : 'g
Returns: 'd

getOperandsAsList operands

Full Usage: getOperandsAsList operands

Parameters:
Returns: Operand list
operands : Operands
Returns: Operand list

getPSRFlagFromStr str

Full Usage: getPSRFlagFromStr str

Parameters:
    str : string

Returns: PSRFlag
str : string
Returns: PSRFlag

getSIMDTypFromStr str

Full Usage: getSIMDTypFromStr str

Parameters:
    str : string

Returns: SIMDDataType
str : string
Returns: SIMDDataType

getSRType str

Full Usage: getSRType str

Parameters:
    str : string

Returns: SRType
str : string
Returns: SRType

iFlagFromStr str

Full Usage: iFlagFromStr str

Parameters:
    str : string

Returns: Iflag
str : string
Returns: Iflag

isITInstruction _arg1

Full Usage: isITInstruction _arg1

Parameters:
Returns: bool
_arg1 : Opcode
Returns: bool

isSIMDOpcode opcode

Full Usage: isSIMDOpcode opcode

Parameters:
Returns: bool
opcode : Opcode
Returns: bool

makeSIMDOperand _arg1

Full Usage: makeSIMDOperand _arg1

Parameters:
Returns: SIMDOperand
_arg1 : SIMDFPRegister list
Returns: SIMDOperand

newInsInfo addr opcode c it w q simd oprs iLen mode cflag

Full Usage: newInsInfo addr opcode c it w q simd oprs iLen mode cflag

Parameters:
Returns: InsInfo
addr : Addr
opcode : Opcode
c : Condition option
it : byte
w : bool
q : Qualifier option
simd : SIMDDataTypes option
oprs : Operands
iLen : uint32
mode : ArchOperationMode
cflag : bool option
Returns: InsInfo

optionOprFromStr str

Full Usage: optionOprFromStr str

Parameters:
    str : string

Returns: OptionOpr
str : string
Returns: OptionOpr

parseOprRegShiftOperand opcode reg

Full Usage: parseOprRegShiftOperand opcode reg

Parameters:
Returns: Parser<Operand, 'a>
opcode : Opcode
reg : Register
Returns: Parser<Operand, 'a>

parseShiftOperation opcode imm

Full Usage: parseShiftOperation opcode imm

Parameters:
Returns: Parser<(SRType * 'a), 'b>
opcode : Opcode
imm : 'a
Returns: Parser<(SRType * 'a), 'b>

substituteParsedRegister (reg, dummyOffset)

Full Usage: substituteParsedRegister (reg, dummyOffset)

Parameters:
Returns: Offset

Updates the dummy offset value by substituing the reg field of the dummy offset value by the register given.

reg : Register
dummyOffset : Offset
Returns: Offset