Package ghidra.program.util
Class InstructionUtils
- java.lang.Object
-
- ghidra.program.util.InstructionUtils
-
public class InstructionUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description InstructionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]
getFormatedInstructionObjects(Instruction instr, boolean input)
Format instruction input or result objectsstatic java.lang.String[]
getFormatedOperandObjects(Instruction instr, int opIndex)
Format instruction operand objectsstatic java.lang.String
getFormattedContextRegisterValueBreakout(Instruction instr, java.lang.String indent)
Get formatted context register as list of child register valuesstatic java.lang.String
getFormattedInstructionDetails(Instruction instruction, SleighDebugLogger debug)
Get details instruction info as formatted textstatic java.lang.String
getFormattedRegisterValueBits(RegisterValue value, java.lang.String indent)
Get formatted RegisterValue as list of child register values
-
-
-
Method Detail
-
getFormattedInstructionDetails
public static java.lang.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
public static java.lang.String getFormattedContextRegisterValueBreakout(Instruction instr, java.lang.String indent)
Get formatted context register as list of child register values- Parameters:
instr
-- Returns:
- formatted context data
-
getFormatedInstructionObjects
public static java.lang.String[] getFormatedInstructionObjects(Instruction instr, boolean input)
Format instruction input or result objects- Parameters:
instr
- instructioninput
- input objects if true else result objects- Returns:
- formatted array of strings
-
getFormatedOperandObjects
public static java.lang.String[] getFormatedOperandObjects(Instruction instr, int opIndex)
Format instruction operand objects- Parameters:
instr
- instructionint
- opIndex- Returns:
- formatted array of strings
-
getFormattedRegisterValueBits
public static java.lang.String getFormattedRegisterValueBits(RegisterValue value, java.lang.String indent)
Get formatted RegisterValue as list of child register values- Parameters:
value
-- Returns:
-
-