Header menu logo B2R2

OperandParsingHelper Module

Functions and values

Function or value Description

advSIMDExpandImm bin i

Full Usage: advSIMDExpandImm bin i

Parameters:
    bin : uint32
    i : uint32

Returns: int64

shared/functions/vector/AdvSIMDExpandImm on page J1-7926.

bin : uint32
i : uint32
Returns: int64

bitCount bits len

Full Usage: bitCount bits len

Parameters:
    bits : uint32
    len : int32

Returns: int

shared/functions/common/BitCount on page J1-7845.

bits : uint32
len : int32
Returns: int

expandImm bin

Full Usage: expandImm bin

Parameters:
    bin : uint32

Returns: Operand
bin : uint32
Returns: Operand

expandImmCF bin

Full Usage: expandImmCF bin

Parameters:
    bin : uint32

Returns: Operand * bool option
bin : uint32
Returns: Operand * bool option

expandImmediate bin

Full Usage: expandImmediate bin

Parameters:
    bin : uint32

Returns: uint32

aarch32/functions/common/A32ExpandImm_C on page J1-7766. Modified immediate constants in A32 instructions on page F2-4136.

bin : uint32
Returns: uint32

getAPSR _arg1

Full Usage: getAPSR _arg1

Parameters:
    _arg1 : uint32

Returns: Register * PSRFlag option
_arg1 : uint32
Returns: Register * PSRFlag option

getBankedReg r sysM

Full Usage: getBankedReg r sysM

Parameters:
    r : uint32
    sysM : uint32

Returns: Register

Operand functions

r : uint32
sysM : uint32
Returns: Register

getCPSR _arg1

Full Usage: getCPSR _arg1

Parameters:
    _arg1 : uint32

Returns: Register * PSRFlag option
_arg1 : uint32
Returns: Register * PSRFlag option

getCondWithITSTATE itstate

Full Usage: getCondWithITSTATE itstate

Parameters:
    itstate : byte list

Returns: Condition
itstate : byte list
Returns: Condition

getCoprocCReg n

Full Usage: getCoprocCReg n

Parameters:
    n : uint32

Returns: Register
n : uint32
Returns: Register

getCoprocDReg n

Full Usage: getCoprocDReg n

Parameters:
    n : uint32

Returns: Register
n : uint32
Returns: Register

getDRegList fReg rNum

Full Usage: getDRegList fReg rNum

Parameters:
    fReg : uint32
    rNum : uint32

Returns: Operand
fReg : uint32
rNum : uint32
Returns: Operand

getDT32 _arg1

Full Usage: getDT32 _arg1

Parameters:
    _arg1 : uint32

Returns: SIMDDataType
_arg1 : uint32
Returns: SIMDDataType

getDT64 _arg1

Full Usage: getDT64 _arg1

Parameters:
    _arg1 : uint32

Returns: SIMDDataType
_arg1 : uint32
Returns: SIMDDataType

getDTF0 _arg1

Full Usage: getDTF0 _arg1

Parameters:
    _arg1 : uint32

Returns: SIMDDataType
_arg1 : uint32
Returns: SIMDDataType

getDTF1 _arg1

Full Usage: getDTF1 _arg1

Parameters:
    _arg1 : uint32

Returns: SIMDDataType
_arg1 : uint32
Returns: SIMDDataType

getDTFP bin

Full Usage: getDTFP bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTFSU bin

Full Usage: getDTFSU bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option

Data types: FP, sign, unsign

bin : uint32
Returns: SIMDDataTypes option

getDTImm4 _arg1

Full Usage: getDTImm4 _arg1

Parameters:
    _arg1 : uint32

Returns: SIMDDataType
_arg1 : uint32
Returns: SIMDDataType

getDTImm6 bin

Full Usage: getDTImm6 bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTImm6ByteA bin

Full Usage: getDTImm6ByteA bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTImm6ByteT bin

Full Usage: getDTImm6ByteT bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTImm6Int bin

Full Usage: getDTImm6Int bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTImm6Sign bin

Full Usage: getDTImm6Sign bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTImm6WordA bin

Full Usage: getDTImm6WordA bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTImm6WordT bin

Full Usage: getDTImm6WordT bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTInt _arg1

Full Usage: getDTInt _arg1

Parameters:
    _arg1 : uint32

Returns: SIMDDataType
_arg1 : uint32
Returns: SIMDDataType

getDTLImmA bin

Full Usage: getDTLImmA bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTLImmT bin

Full Usage: getDTLImmT bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTOpU bin

Full Usage: getDTOpU bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTPolyA b

Full Usage: getDTPolyA b

Parameters:
    b : uint32

Returns: SIMDDataType
b : uint32
Returns: SIMDDataType

getDTPolyT b

Full Usage: getDTPolyT b

Parameters:
    b : uint32

Returns: SIMDDataType
b : uint32
Returns: SIMDDataType

getDTSign _arg1

Full Usage: getDTSign _arg1

Parameters:
    _arg1 : uint32

Returns: SIMDDataType
_arg1 : uint32
Returns: SIMDDataType

getDTUImm3hA bin

Full Usage: getDTUImm3hA bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTUImm3hT bin

Full Usage: getDTUImm3hT bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTUSign _arg1

Full Usage: getDTUSign _arg1

Parameters:
    _arg1 : uint32

Returns: SIMDDataType
_arg1 : uint32
Returns: SIMDDataType

getDTUSize bin

Full Usage: getDTUSize bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDTUSzQ bin

Full Usage: getDTUSzQ bin

Parameters:
    bin : uint32

Returns: SIMDDataTypes option
bin : uint32
Returns: SIMDDataTypes option

getDtA bin

Full Usage: getDtA bin

Parameters:
    bin : uint32

Returns: SIMDDataType

Data Type parsing

bin : uint32
Returns: SIMDDataType

getDtT bin

Full Usage: getDtT bin

Parameters:
    bin : uint32

Returns: SIMDDataType
bin : uint32
Returns: SIMDDataType

getIT fstCond cond mask

Full Usage: getIT fstCond cond mask

Parameters:
    fstCond : uint32
    cond : byte
    mask : uint32

Returns: Opcode * byte list
fstCond : uint32
cond : byte
mask : uint32
Returns: Opcode * byte list

getITOpcodeWithX cond x

Full Usage: getITOpcodeWithX cond x

Parameters:
    cond : byte
    x : bool

Returns: Opcode * byte list
cond : byte
x : bool
Returns: Opcode * byte list

getITOpcodeWithXY cond x y

Full Usage: getITOpcodeWithXY cond x y

Parameters:
    cond : byte
    x : bool
    y : bool

Returns: Opcode * byte list
cond : byte
x : bool
y : bool
Returns: Opcode * byte list

getITOpcodeWithXYZ cond x y z

Full Usage: getITOpcodeWithXYZ cond x y z

Parameters:
    cond : byte
    x : bool
    y : bool
    z : bool

Returns: Opcode * byte list
cond : byte
x : bool
y : bool
z : bool
Returns: Opcode * byte list

getIflag _arg1

Full Usage: getIflag _arg1

Parameters:
    _arg1 : uint32

Returns: Iflag
_arg1 : uint32
Returns: Iflag

getOption n

Full Usage: getOption n

Parameters:
    n : uint32

Returns: BarrierOption
n : uint32
Returns: BarrierOption

getSPSR _arg1

Full Usage: getSPSR _arg1

Parameters:
    _arg1 : uint32

Returns: Register * PSRFlag option
_arg1 : uint32
Returns: Register * PSRFlag option

getSRegList fReg rNum

Full Usage: getSRegList fReg rNum

Parameters:
    fReg : uint32
    rNum : uint32

Returns: Operand
fReg : uint32
rNum : uint32
Returns: Operand

getVecDReg n

Full Usage: getVecDReg n

Parameters:
    n : uint32

Returns: Register
n : uint32
Returns: Register

getVecQReg n

Full Usage: getVecQReg n

Parameters:
    n : uint32

Returns: Register
n : uint32
Returns: Register

getVecSReg n

Full Usage: getVecSReg n

Parameters:
    n : uint32

Returns: Register

let parseCond n: Condition = n |> LanguagePrimitives.EnumOfValue

n : uint32
Returns: Register

inverseCond cond

Full Usage: inverseCond cond

Parameters:
    cond : byte

Returns: byte
cond : byte
Returns: byte

replicate value bits oprSize

Full Usage: replicate value bits oprSize

Parameters:
    value : int64
    bits : int
    oprSize : RegType

Returns: int64

shared/functions/common/Replicate on page J1-7848.

value : int64
bits : int
oprSize : RegType
Returns: int64

signExtend bitSize bits

Full Usage: signExtend bitSize bits

Parameters:
    bitSize : int
    bits : uint32

Returns: Operand

shared/functions/common/SignExtend on page J1-7849.

bitSize : int
bits : uint32
Returns: Operand

t32ExpandImm imm12

Full Usage: t32ExpandImm imm12

Parameters:
    imm12 : uint32

Returns: uint32

aarch32/functions/common/T32ExpandImm_C on page J1-7767. T32ExpandImm_C() ================ Modified immediate constants in A32 inOprInfoions on page F2-4135.

imm12 : uint32
Returns: uint32

toMemAlign rn align _arg1

Full Usage: toMemAlign rn align _arg1

Parameters:
Returns: Operand
rn : Register
align : Align option
_arg1 : Register
Returns: Operand

updateITSTATE itstate

Full Usage: updateITSTATE itstate

Parameters:
    itstate : byref<byte list>

Thumb operands

itstate : byref<byte list>

vfpExpandImm bin imm8

Full Usage: vfpExpandImm bin imm8

Parameters:
    bin : uint32
    imm8 : uint32

Returns: int64

shared/functions/float/vfpexpandimm/VFPExpandImm on page J1-7900.

bin : uint32
imm8 : uint32
Returns: int64

wback bin

Full Usage: wback bin

Parameters:
    bin : uint32

Returns: bool
bin : uint32
Returns: bool

wbackM bin

Full Usage: wbackM bin

Parameters:
    bin : uint32

Returns: bool
bin : uint32
Returns: bool

wbackW bin

Full Usage: wbackW bin

Parameters:
    bin : uint32

Returns: bool
bin : uint32
Returns: bool

wbackW8 bin

Full Usage: wbackW8 bin

Parameters:
    bin : uint32

Returns: bool
bin : uint32
Returns: bool

Type something to start searching.