Package ghidra.program.util
Class InstructionUtils
java.lang.Object
ghidra.program.util.InstructionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
getFormatedInstructionObjects
(Instruction instr, boolean input) Format instruction input or result objectsstatic String[]
getFormatedOperandObjects
(Instruction instr, int opIndex) Format instruction operand objectsstatic String
getFormattedContextRegisterValueBreakout
(Instruction instr, String indent) Get formatted context register as list of child register valuesstatic String
getFormattedInstructionDetails
(Instruction instruction, SleighDebugLogger debug) Get details instruction info as formatted textstatic String
getFormattedRegisterValueBits
(RegisterValue value, String indent) Get formatted RegisterValue as list of child register values
-
Constructor Details
-
InstructionUtils
public InstructionUtils()
-
-
Method Details
-
getFormattedInstructionDetails
public static String getFormattedInstructionDetails(Instruction instruction, SleighDebugLogger debug) Get details instruction info as formatted text- Parameters:
instruction
-debug
- SleighDebugerLogger for specified instruction or null- Returns:
- instruction details
-
getFormattedContextRegisterValueBreakout
Get formatted context register as list of child register values- Parameters:
instr
-- Returns:
- formatted context data
-
getFormatedInstructionObjects
Format instruction input or result objects- Parameters:
instr
- instructioninput
- input objects if true else result objects- Returns:
- formatted array of strings
-
getFormatedOperandObjects
Format instruction operand objects- Parameters:
instr
- instructionopIndex
- the operand index- Returns:
- formatted array of strings
-
getFormattedRegisterValueBits
Get formatted RegisterValue as list of child register values- Parameters:
value
-- Returns:
-