Interface Disassembler


  • public interface Disassembler
    An instruction disassembler interface.
    • Method Detail

      • disassemble

        DisassembledInstruction disassemble​(int memoryPosition)
                                     throws InvalidInstructionException,
                                            java.lang.IndexOutOfBoundsException
        Dissassemble one instruction at specific location.
        Parameters:
        memoryPosition - Memory address where to begin disassembling.
        Returns:
        Object that represents the disassembled instruction.
        Throws:
        InvalidInstructionException - when instruction coul not be disassembled
        java.lang.IndexOutOfBoundsException - when memory location exceeds the bounds
      • getNextInstructionPosition

        int getNextInstructionPosition​(int memoryPosition)
                                throws java.lang.IndexOutOfBoundsException
        Returns an address in the memory of the next instruction, that is followed by specified location.
        Parameters:
        memoryPosition - The memory location of the instruction
        Returns:
        Memory position of next instruction
        Throws:
        java.lang.IndexOutOfBoundsException - when memory location exceeds the bounds