Class InstructionUtils


  • public class InstructionUtils
    extends java.lang.Object
    • Constructor Detail

      • InstructionUtils

        public InstructionUtils()
    • 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 - instruction
        input - 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 - instruction
        opIndex - the operand index
        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: