decompiler  1.0.0
Public Member Functions | List of all members
ghidra::OpBehaviorIntLeft Class Reference

CPUI_INT_LEFT behavior. More...

#include <opbehavior.hh>

Inheritance diagram for ghidra::OpBehaviorIntLeft:
ghidra::OpBehavior

Public Member Functions

 OpBehaviorIntLeft (void)
 Constructor.
 
virtual uintb evaluateBinary (int4 sizeout, int4 sizein, uintb in1, uintb in2) const
 Emulate the binary op-code on input values. More...
 
virtual uintb recoverInputBinary (int4 slot, int4 sizeout, uintb out, int4 sizein, uintb in) const
 Reverse the binary op-code operation, recovering an input value. More...
 
- Public Member Functions inherited from ghidra::OpBehavior
 OpBehavior (OpCode opc, bool isun)
 A behavior constructor. More...
 
 OpBehavior (OpCode opc, bool isun, bool isspec)
 A special behavior constructor. More...
 
OpCode getOpcode (void) const
 Get the opcode for this pcode operation. More...
 
bool isSpecial (void) const
 Check if this is a special operator. More...
 
bool isUnary (void) const
 Check if operator is unary. More...
 
virtual uintb evaluateUnary (int4 sizeout, int4 sizein, uintb in1) const
 Emulate the unary op-code on an input value. More...
 
virtual uintb recoverInputUnary (int4 sizeout, uintb out, int4 sizein) const
 Reverse the unary op-code operation, recovering the input value. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ghidra::OpBehavior
static void registerInstructions (vector< OpBehavior *> &inst, const Translate *trans)
 Build all pcode behaviors. More...
 

Detailed Description

CPUI_INT_LEFT behavior.

Member Function Documentation

◆ evaluateBinary()

uintb ghidra::OpBehaviorIntLeft::evaluateBinary ( int4  sizeout,
int4  sizein,
uintb  in1,
uintb  in2 
) const
virtual

Emulate the binary op-code on input values.

Parameters
sizeoutis the size of the output in bytes
sizeinis the size of the inputs in bytes
in1is the first input value
in2is the second input value
Returns
the output value

Reimplemented from ghidra::OpBehavior.

References ghidra::calc_mask().

◆ recoverInputBinary()

uintb ghidra::OpBehaviorIntLeft::recoverInputBinary ( int4  slot,
int4  sizeout,
uintb  out,
int4  sizein,
uintb  in 
) const
virtual

Reverse the binary op-code operation, recovering an input value.

If the output value and one of the input values is known, recover the value of the other input.

Parameters
slotis the input slot to recover
sizeoutis the size of the output in bytes
outis the output value
sizeinis the size of the inputs in bytes
inis the known input value
Returns
the input value corresponding to the slot

Reimplemented from ghidra::OpBehavior.

References ghidra::calc_mask(), and ghidra::OpBehavior::recoverInputBinary().


The documentation for this class was generated from the following files: